I used the OZ clause but got an error in the is_array test.
But adding @ in front of the name of the array to be tested worked.
if (is_array((@$errors))){ foreach ($errors as $error): ?> <?php echo $error; ?> <br/> <?php endforeach; }
and yes, I know that using @ is shoddy, but I can't get a tiny bit of legacy code that works beautifully. I can spend another hour to fix this, to get around "your var is not defined" or insert @ in and get other things necessary for the ALFA version to share with a friend tomorrow. Oh yes, 11 p.m., and my brain is confused!
ATB Mr. Grumpy
PS Thank you very much OZ_ for the 95% solution!
source share