Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix another 'undefined index' warninG
[wfpl.git]
/
template.php
diff --git
a/template.php
b/template.php
index
32c3783
..
485cc87
100644
(file)
--- a/
template.php
+++ b/
template.php
@@
-424,7
+424,8
@@
function &tem_is_old_sub($name, &$template) {
if($tem) return $tem;
}
}
if($tem) return $tem;
}
}
- return false;
+ $false = false;
+ return $false;
}
class tem {
}
class tem {
@@
-462,7
+463,11
@@
class tem {
}
function get($key) {
}
function get($key) {
- return $this->data[$key];
+ if (isset($this->data[$key])) {
+ return $this->data[$key];
+ } else {
+ return;
+ }
}
function show($name) {
}
function show($name) {
@@
-546,7
+551,7
@@
class tem {
}
function tem_init() {
}
function tem_init() {
- if(!$GLOBALS['wfpl_template']) {
+ if(!isset($GLOBALS['wfpl_template']) || !$GLOBALS['wfpl_template']) {
$GLOBALS['wfpl_template'] = new tem();
}
}
$GLOBALS['wfpl_template'] = new tem();
}
}
@@
-632,5
+637,3
@@
function tem_load_new($filename) {
function tem_sub($name) {
tem_show($name);
}
function tem_sub($name) {
tem_show($name);
}
-
-?>