Hi
A quick question:
I was having trouble with one of the payment modules I am writing and noticed a problem with $_SESSION['payment'] failing an is_object() test on line 77 of checkout_confirmation/header.php.
Could someone please confirm that code on line 72 of classes/payment.php is correct looking like this:
Code:
if (!$credit_covers) $_SESSION['payment'] = $include_modules[0]['class'];
and given the assignment on line 65 above it,
Code:
$GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
is there any chance it should come from the object held in $GLOBALS? - $include_modules[0]['class'] is a string at the moment i.e. the Real Question - is there any chance the code could like ...
Code:
if (!$credit_covers) $_SESSION['payment'] = $GLOBALS[$include_modules[0]['class']];
I have tried making the change and my module now works, however I have found very few bugs in ZC over the years and I would be really grateful for a steer as to whether I not I am on the right track.
Thanks, Ian
Bookmarks