[TYPO3-core] RFC: #15082: [openDocs] Exception is thrown if a record isn't found
François Suter
fsu-lists at cobweb.ch
Mon Jul 12 14:22:45 CEST 2010
Hi,
Funny I stumbled on the same issue yesterday evening, but had no time to
submit my patch yet :-)
> Solution:
> Solution is easy: check the record, and if not present, return with
> empty menu entry.
In the spirit of avoiding early returns, I encapsulated the whole inside
the test in my patch. I'm attaching it here as an alternative.
Other than that +1 on reading and testing. Almost a no-brainer, I was
actually considering doing it as a FYI.
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15082-v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100712/0e0281a1/attachment.txt>
More information about the TYPO3-team-core
mailing list