forked from extern/egroupware
worked around stupid php5.2 empty haystack warnings
This commit is contained in:
parent
95b0f50d12
commit
12f80f139b
@ -198,7 +198,7 @@
|
|||||||
$vars = $this->template->get_undefined('row_colspan');
|
$vars = $this->template->get_undefined('row_colspan');
|
||||||
foreach($vars as $var)
|
foreach($vars as $var)
|
||||||
{
|
{
|
||||||
if(strstr($var,'lang_'))
|
if(strpos($var,'lang_') !== false)
|
||||||
{
|
{
|
||||||
$value = str_replace('lang_','',$var);
|
$value = str_replace('lang_','',$var);
|
||||||
$value = str_replace('_',' ',$value);
|
$value = str_replace('_',' ',$value);
|
||||||
|
@ -113,7 +113,7 @@
|
|||||||
|
|
||||||
// make categories called via sidebox menu of an app, to behave like a part of that app
|
// make categories called via sidebox menu of an app, to behave like a part of that app
|
||||||
$referer = $GLOBALS['egw']->common->get_referer('/preferences/index.php');
|
$referer = $GLOBALS['egw']->common->get_referer('/preferences/index.php');
|
||||||
if (!strstr($referer,'menuaction=preferences.uicategories'))
|
if (strpos($referer,'menuaction=preferences.uicategories') === false)
|
||||||
{
|
{
|
||||||
$this->referer = $referer;
|
$this->referer = $referer;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user