OK this is getting weirder:
$fullResult = $this->getResult();
if ($willPaginate && (int)$displayItemLimit > 0 && !$willShowAllPages && is_array($fullResult) && @sizeof($fullResult) > (int)$displayItemLimit) {
// DO STUFF
}
This produces a parse error (no further information), but this works:
$fullResult = $this->getResult();
if ($willPaginate && (int)$displayItemLimit > 0 && !$willShowAllPages && is_array($fullResult) && @sizeof($result) > (int)$displayItemLimit) {
// DO STUFF
}
How can one variable produce a parse error, while another be just fine?
Phil