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