Advertisement
BenjaminS

TYPO3: Powermail's solution of enable USER_INT

Apr 5th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. /**
  2. * Switch from USER to USER_INT if a piVar is given
  3. *
  4. * @return   boolean     Was switched?
  5. */
  6. private function switchToUserInt() {
  7.     if (count($this->piVars) || $this->conf['caching'] != '1') { // if any GET or POST param given
  8.         $this->cObj->convertToUserIntObject(); // Convert object to user_int (do not cache it)
  9.         if ($this->cObj->getUserObjectType() == 2) { // if USER
  10.             return true; // stop process (avoid double output)
  11.         }
  12.     }
  13.     return false;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement