added forgotten $script var
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_befunc.php
index dcc25a8..5193dec 100755 (executable)
@@ -1918,7 +1918,7 @@ class t3lib_BEfunc        {
         */
        function getFuncMenu($id,$elementName,$currentValue,$menuItems,$script='',$addparams='')        {
                if (is_array($menuItems))       {
-                       if (!$script) {basename(PATH_thisScript);}
+                       if (!$script) {$script=basename(PATH_thisScript);}
                        $options='';
                        reset($menuItems);
                        while(list($value,$label)=each($menuItems))     {