From 12f80f139ba1cb55ce7ad82e0897b1636b5cbfd1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 29 Apr 2007 15:07:11 +0000 Subject: [PATCH] worked around stupid php5.2 empty haystack warnings --- preferences/inc/class.uiaclprefs.inc.php | 2 +- preferences/inc/class.uicategories.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/preferences/inc/class.uiaclprefs.inc.php b/preferences/inc/class.uiaclprefs.inc.php index aad6eb5a85..72c92c7d86 100644 --- a/preferences/inc/class.uiaclprefs.inc.php +++ b/preferences/inc/class.uiaclprefs.inc.php @@ -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); diff --git a/preferences/inc/class.uicategories.inc.php b/preferences/inc/class.uicategories.inc.php index 12e0c4edc2..9151e00689 100644 --- a/preferences/inc/class.uicategories.inc.php +++ b/preferences/inc/class.uicategories.inc.php @@ -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; }