[TYPO3-core] RFC #16302: Template module crashes, if no template exists on a page
Reinhard Führicht
rf at typoheads.at
Mon Nov 8 11:43:59 CET 2010
Am 2010-11-08 11:30, schrieb Andreas Kiessling:
> Hi,
>
>>
>> Hi Reinhard,
>>
>> does this always occur for you? Can't reproduce.
>>
>> Does it only exist in trunk?
>>
>
> Yes, trunk only. It was probably introduced by the feature to edit
> external ts files.
>
> Just did a new setup.
> - created template for new site on first level
> - now click on a page on second level in template module
>
> ext_getFirstTemplate returns FALSE in that case, so i would prefer just
> checking that instead of casting to array.
>
> Regards,
> Andreas
Hi,
I don't know which place would be the best to ensure that $tplRow is an
array.
Maybe it would be best to let ext_getFirstTemplate not return false but
an empty array?
See attached v2a and v2b for details.
Regards,
Reinhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16302_v2a.diff
Type: text/x-diff
Size: 645 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101108/48175091/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16302_v2b.diff
Type: text/x-diff
Size: 379 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101108/48175091/attachment-0001.diff>
More information about the TYPO3-team-core
mailing list