Fixed bug #12466: PHP-5.3 Warning: strlen() expects parameter 1 to be string, array...
authorRupert Germann <rupi@gmx.li>
Thu, 5 Nov 2009 15:37:51 +0000 (15:37 +0000)
committerRupert Germann <rupi@gmx.li>
Thu, 5 Nov 2009 15:37:51 +0000 (15:37 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6333 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/classes/class.typo3ajax.php

index ce62c37..d6106f7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-05  Rupert Germann  <rupi@gmx.li>
+
+       * Fixed bug #12466: PHP-5.3 Warning: strlen() expects parameter 1 to be string, array given
+
 2009-11-05  Oliver Hader  <oliver@typo3.org>
 
        * Fixed bug #12441: IRRE - Cannot add new elements on second level of nesting
index d0cfc83..99167c6 100644 (file)
@@ -114,9 +114,9 @@ class TYPO3AJAX {
                if (array_key_exists($key, $this->content)) {
                        $oldcontent = $this->content[$key];
                }
-               if (!isset($content) || !strlen($content)) {
+               if (!isset($content) || empty($content)) {
                        unset($this->content[$key]);
-               } elseif (!isset($key) || !strlen($key)) {
+               } elseif (!isset($key) || empty($key)) {
                        $this->content[] = $content;
                } else {
                        $this->content[$key] = $content;