mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
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');
|
||||
foreach($vars as $var)
|
||||
{
|
||||
if(strstr($var,'lang_'))
|
||||
if(strpos($var,'lang_') !== false)
|
||||
{
|
||||
$value = str_replace('lang_','',$var);
|
||||
$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
|
||||
$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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user