[TYPO3-core] RFC #11746: speed up function t3lib_BEfunc::isRecordLocked()
Steffen Kamper
info at sk-typo3.de
Wed Aug 19 12:07:40 CEST 2009
Hi,
Rupert Germann schrieb:
> Steffen Kamper schrieb:
>
>> return isset($LOCKED_RECORDS[$table.':'.$uid]) ?
>> $LOCKED_RECORDS[$table.':'.$uid] : array();
>
> that will not work, because currently the function is expected to return
> nothing when there's no entry. You're returning an array - that's not
> nothing ;-)
>
>
ok, then phpDoc is wrong and it should return NULL instead of array()
vg Steffen
More information about the TYPO3-team-core
mailing list