Bug #3226: Error in template::clearCacheMenu if user is not admin
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Sun, 30 Apr 2006 15:38:16 +0000 (15:38 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Sun, 30 Apr 2006 15:38:16 +0000 (15:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1453 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/template.php

index 791b506..ceb05df 100755 (executable)
@@ -1233,7 +1233,7 @@ $str.=$this->docBodyTagBegin().
                        }';
                $af_content = '<select name="cacheCmd" onchange="'.htmlspecialchars($onChange).'">'.implode('',$opt).'</select>';
 
-               if (count($opt)>2)      {
+               if (count($opt)>1)      {
                        return $af_content;
                }
        }
@@ -1572,7 +1572,7 @@ $str.=$this->docBodyTagBegin().
         * @param       string          $script is the script to send the &id to, if empty it's automatically found
         * @param       string          $addParams is additional parameters to pass to the script.
         * @return      string          HTML code for tab menu
-        * @author      René Fritz <r.fritz@colorcube.de>
+        * @author      Ren? Fritz <r.fritz@colorcube.de>
         */
        function getTabMenu($mainParams,$elementName,$currentValue,$menuItems,$script='',$addparams='') {
                $content='';