Fixed bug #6726: "Call to a member function isAdmin() on a non-object" with tx_commen...
authorstephenking <stephenking@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 19 Jun 2011 19:57:17 +0000 (19:57 +0000)
committerstephenking <stephenking@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 19 Jun 2011 19:57:17 +0000 (19:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/stg_clearcache/trunk@48902 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
class.tx_stgclearcache.php

index f0b58dc..eec32d4 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2011-06-19 Steffen Gebert  <steffen.gebert@typo3.org>
        * Fixed bug #10050: Using deprecated XLLfile stuff (Thanks to Susanne Moog and Frank Kroeber)
+       * Fixed bug #6726: "Call to a member function isAdmin() on a non-object" with tx_comments in FE
 
 2011-01-08 Steffen Gebert  <steffen.gebert@typo3.org>
        * Release of version 2.1.1
index a257418..0b85d3a 100755 (executable)
@@ -58,7 +58,7 @@ class tx_stgclearcache {
         * @return      void
         */
        function clearCachePostProc (&$params, &$pObj) {
-               if ($params['cacheCmd'] && t3lib_div::testInt($params['cacheCmd'])) {
+               if (TYPO3_MODE === 'BE' && $params['cacheCmd'] && t3lib_div::testInt($params['cacheCmd'])) {
 
                        if ($this->queryGeneratorInstance == null) {
                                $this->queryGeneratorInstance = t3lib_div::makeInstance('t3lib_queryGenerator');