Skip to content

Commit

Permalink
Remove redundant PHP3 code (bug #377)
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldpdl committed Aug 12, 2012
1 parent 23660dc commit 90e64ef
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions catalog/includes/classes/payment.php
Expand Up @@ -66,12 +66,8 @@ function payment($module = '') {
function update_status() {
if (is_array($this->modules)) {
if (is_object($GLOBALS[$this->selected_module])) {
if (function_exists('method_exists')) {
if (method_exists($GLOBALS[$this->selected_module], 'update_status')) {
$GLOBALS[$this->selected_module]->update_status();
}
} else { // PHP3 compatibility
@call_user_method('update_status', $GLOBALS[$this->selected_module]);
if (method_exists($GLOBALS[$this->selected_module], 'update_status')) {
$GLOBALS[$this->selected_module]->update_status();
}
}
}
Expand Down

0 comments on commit 90e64ef

Please sign in to comment.