[TYPO3-timtab] FIXED problem with comments PHP5 issue

Ingo Renner typo3 at ingo-renner.com
Fri May 5 00:16:15 CEST 2006


Am Thu, 4 May 2006 23:13:16 +0200 schrieb Yannick Koechlin:

>> 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:

thanks a lot Yannick!

> maybe there is a more elegant way but anyway ;)
yes, there is:

// 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(!is_array($this->conf)) {
			$this->conf = array();
		}		
		$this->conf = array_merge($this->conf,
$GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_timtab.']);



-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-project-timtab mailing list