[TYPO3-timtab] FIXED problem with comments PHP5 issue

Yannick Koechlin lists at artcore.ch
Thu May 4 23:13:16 CEST 2006



> Warning: array_merge() [function.array-merge]: Argument #1 is not
> an array in
> /home/emm/htdocs/site/typo3conf/ext/timtab/class.tx_timtab_fe.php on line 105

i fixed this with:

                // pi_setPiVarDefaults() does not work since we are in a code library
                // and don't get called as a plugin, so we're getting our conf this way:
                // $this->conf might be set already, so we have to merge both arrays
                if($this->conf)
                $this->conf = array_merge($this->conf, $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_timtab.']);
                else
                $this->conf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_timtab.'];


maybe there is a more elegant way but anyway ;)

obviously php5 throws an error if the array is empty.






More information about the TYPO3-project-timtab mailing list