[TYPO3-core] RFC #12666: Copying Record with TCEMain process cmdmap throws sql errors

Francois Suter fsu-lists at cobweb.ch
Wed Nov 18 23:51:56 CET 2009


Hi,

> Problem:
> Copying Record with TCEMain processCmdMap throws sql errors on pages
> with f.e. sys_template or sys_domain records because in the method for
> the localization it's not checked if the needed TCA configuration is there.

Just a question after a quick read: any idea what the performance cost of:

array_key_exists('languageField', $GLOBALS['TCA'][$table]['ctrl'])

is, against just using:

isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])

It may be similar or only a negligible difference, but I would just 
expect isset() to be faster. Maybe I'm wrong.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-core mailing list