[TYPO3-core] RFC: Bug #8944: PHP-Error in class.em_index.php on line 4333
Oliver Klee
typo3-german-02 at oliverklee.de
Mon Sep 15 16:26:30 CEST 2008
Hi Stefan,
Stefan Geith schrieb:
> I could change this simply to (1):
> $this->CMD = (array) t3lib_div::_GP('CMD');
> or to (2):
> $this->CMD = is_array(t3lib_div::_GP('CMD')) ?
> t3lib_div::_GP('CMD') : array();
> or to (3):
> $this->CMD = t3lib_div::_GP('CMD');
> if (!is_array($this->CMD)) {
> $this->CMD = array();
> }
I'd prefer (2).
Oliver
More information about the TYPO3-team-core
mailing list