code:
foreach ($phpus2b['Images'] as $key => $value )
{
if ($verbose_on == 'yes') { // if verbose_on = yes then print
echo nl2br(". \n Begin central processing (FOREACH). Current Image is: $key .");
echo nl2br(". \n continue cnt proc (FOREACH). Current value2 is: $value .");
} // end of verbose if
output:
Begin central processing (FOREACH). Current Image is: 0 ..
continue cnt proc (FOREACH). Current value2 is: Array ..
and some error checking flags:
code:
/-------------------------- Error checking. Is the Gallery empty --------------
if (empty ($key)) {
echo nl2br(". \n .");
echo " ERROR ! --- This is an unexpected condition. Core email album processing
has looped beyond the total number of images in email or the email album is empty";
$protect_on = 'yes'; // We are screwed. Set protect on and do no processing.
output:
. ERROR ! --- This is an unexpected condition. Core email album processing
has looped beyond the total number of images in email or the email album is empty.
Looks like the array structure has changed.