[TYPO3-core] RFC #16902 Bug: Fatal error in tslib_content_text (was: No FE output)

JoH asenau info at cybercraft.de
Thu Jan 20 17:07:49 CET 2011


  The solution to allow NULL values would be:
>
> function sampleFunction (array $parameter = NULL) {
> if (is_null($parameter)) {
> $parameter = array();
> }
> ....
>
> This produces an error if anything other than an array or a NULL value
> is passed. And gracefully uses empty arrays if a NULL value is passed.
>
> Maybe the RM can decide which way to go?

A bit early but just as a
REMINDER

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-team-core mailing list