mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
fixed a few warning messages
This commit is contained in:
@@ -118,9 +118,12 @@ class Smarty
|
||||
\*======================================================================*/
|
||||
function Smarty()
|
||||
{
|
||||
foreach ($this->global_assign as $var_name)
|
||||
foreach ($this->global_assign as $var_name) {
|
||||
if(isset($GLOBALS[$var_name])) {
|
||||
$this->assign($var_name, $GLOBALS[$var_name]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*======================================================================*\
|
||||
@@ -376,10 +379,11 @@ class Smarty
|
||||
}
|
||||
|
||||
if ($display) {
|
||||
echo $results;
|
||||
if(isset($results)) { echo $results; }
|
||||
return;
|
||||
} else
|
||||
return $results;
|
||||
} else {
|
||||
if(isset($results)) { return $results; }
|
||||
}
|
||||
}
|
||||
|
||||
/*======================================================================*\
|
||||
|
@@ -118,9 +118,12 @@ class Smarty
|
||||
\*======================================================================*/
|
||||
function Smarty()
|
||||
{
|
||||
foreach ($this->global_assign as $var_name)
|
||||
foreach ($this->global_assign as $var_name) {
|
||||
if(isset($GLOBALS[$var_name])) {
|
||||
$this->assign($var_name, $GLOBALS[$var_name]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*======================================================================*\
|
||||
@@ -376,10 +379,11 @@ class Smarty
|
||||
}
|
||||
|
||||
if ($display) {
|
||||
echo $results;
|
||||
if(isset($results)) { echo $results; }
|
||||
return;
|
||||
} else
|
||||
return $results;
|
||||
} else {
|
||||
if(isset($results)) { return $results; }
|
||||
}
|
||||
}
|
||||
|
||||
/*======================================================================*\
|
||||
|
Reference in New Issue
Block a user