[TYPO3-doc] WIKI: use of conditions in templates
Daniel Brüßler
info at -remove-patchworking.de
Wed Aug 15 16:54:30 CEST 2007
Hello Michiel,
thanks for the great quotes!!
Now I corrected it. In one case while page-generation the param
$rawEntry was empty. Now we have this:
if ( is_array($rawEntry) ) {
$mw->mSynonyms = array_slice( $rawEntry, 1 );
}else{
$mw->mSynonyms = "";
}
Now I'm looking forward about what nice things you're now doing with the
switch :-)
kind regards
Daniel
Michiel Roos schrieb:
> Daniel,
>
> Top of the page:
> http://wiki.typo3.org/index.php/User:EscapedPrisoner#ParserFunctions_Tests
>
> :-)
>
> Warning: array_slice(): The first argument should be an array in
> /var/www/rlmp/typo3org/wiki.typo3.org/www/languages/Language.php on line
> 858
>
> Cheers,
>
>
> Michiel
>
> Daniel Brüßler wrote:
>> Hello Michiel,
>>
>> I'm not a friend of switching off warning-messages, sorry :-)
>>
>> We'll find the problem and solve it, because it's easy - we know what
>> the problem is.
>>
>> Please post the warning-message, so I can look at that in the code.
>>
>> thanks in advance
>>
>> Daniel
>>
>>
>>> Nice! I like!
>>> The switch works fine. The warning message is thrown by some bad,
>>> outdated piece of php that assumes that the input it gets is actually an
>>> array.. . . well . . that's not fair . . . the error is caused by some
>>> bad piece of script throwing something that is not an array to a piece
>>> of php that expects an array as input.
>>> Michiel
>
>
More information about the TYPO3-project-documentation
mailing list