[Typo3-dev] PHP problem revived
Tobias Weidelt
tobias at weidelt.de
Sat Apr 24 03:15:01 CEST 2004
Hi Kasper,
Kasper Skårhøj wrote:
> The solution would be
> if (
> is_array($TCA['pages']) &&
> is_array($TCA['pages']['columns']) &&
> is_array($TCA['pages']['columns']['title']) )
>
> ...
>
> This is not acceptable to us. This would bloat the code so many places.
> [...]
> what do we do?
did you try something like that:
<?php
error_reporting(E_ALL);
//@ to suppress the error message:
if (is_array(@$a['a']['b']['c'])) {
echo 'Array';
} else {
echo 'No array';
}
?>
More information about the TYPO3-dev
mailing list