Fixed bug #15865 clickmenu breaks if no record set. (Thanks to Bjoern Pedersen)
authorSteffen Kamper <info@sk-typo3.de>
Sat, 9 Oct 2010 10:52:47 +0000 (10:52 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sat, 9 Oct 2010 10:52:47 +0000 (10:52 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9015 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/alt_clickmenu.php

index ae93a6c..3ee648a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-10-10  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #15865 clickmenu breaks if no record set. (Thanks to Bjoern Pedersen)
        * Fixed bug #15230: Bug/Feature: Core only is able to load one specific IE6 CSS file (Thanks to Steffen Ritter)
 
 2010-10-09  Steffen Kamper  <steffen@typo3.org>
index 4b39516..6142edd 100644 (file)
@@ -342,6 +342,10 @@ class clickMenu {
                        // Processing by external functions?
                $menuItems = $this->externalProcessingOfDBMenuItems($menuItems);
 
+               if (!is_array($this->rec)) {
+                       $this->rec = array();
+               }
+
                        // Return the printed elements:
                return $this->printItems($menuItems,
                        $root?