Fixed bug #13257: PHP warning stristr() in Configuration -> Search under PHP 5.3
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 7 Feb 2010 23:12:52 +0000 (23:12 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 7 Feb 2010 23:12:52 +0000 (23:12 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6875 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_arraybrowser.php

index 49caa3b..95347de 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2010-02-05  Steffen Kamper  <info@sk-typo3.de>
+2010-02-08  Christian Kuhn  <lolli@schwarzbu.ch>
+
+       * Fixed bug #13257: PHP warning stristr() in Configuration -> Search under PHP 5.3
+
+2010-02-07  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #1822: There is no API to list tables in theWeb->Page module (thanks to Franz Holzinger)
 
index 01e71be..998b5eb 100644 (file)
@@ -209,7 +209,9 @@ class t3lib_arrayBrowser    {
                        if ($this->regexMode)   {
                                if (preg_match('/'.$searchString.'/',$keyArr[$key]) || ($this->searchKeysToo && preg_match('/'.$searchString.'/',$key)))        {       $this->searchKeys[$depth]=1;    }
                        } else {
-                               if (stristr($keyArr[$key],$searchString) || ($this->searchKeysToo && stristr($key,$searchString)))      {       $this->searchKeys[$depth]=1;    }
+                               if ((!$deeper && stristr($keyArr[$key], $searchString)) || ($this->searchKeysToo && stristr($key, $searchString))) {
+                                       $this->searchKeys[$depth] = 1;
+                               }
                        }
 
                        if ($deeper)    {