Fixed bug #0016467 Missing array check in tt_content
authorJigal van Hemert <jigal@xs4all.nl>
Sat, 20 Nov 2010 12:02:47 +0000 (12:02 +0000)
committerJigal van Hemert <jigal@xs4all.nl>
Sat, 20 Nov 2010 12:02:47 +0000 (12:02 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9495 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/cms/tslib/class.tslib_content.php

index 9019ba3..279e21b 100644 (file)
@@ -1940,7 +1940,7 @@ class tslib_cObj {
                                ;
                        }
                }
-               if (count($conf)) {
+               if (is_array($conf) && count($conf)) {
                        // check, which of the available stdWrap functions is needed for the current conf Array
                        // and keep only those but still in the same order
                        $sortedConf = array_intersect_key($this->stdWrapOrder, $conf);