worked around stupid php5.2 empty haystack warnings

This commit is contained in:
Ralf Becker 2007-04-29 15:07:11 +00:00
parent 95b0f50d12
commit 12f80f139b
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
}