diff --git a/enrol/authorize/authorizenetlib.php b/enrol/authorize/authorizenetlib.php index 92b69e5435b..a5b036def10 100644 --- a/enrol/authorize/authorizenetlib.php +++ b/enrol/authorize/authorizenetlib.php @@ -140,11 +140,6 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $ } } - if ($action <= AN_ACTION_NONE or $action > AN_ACTION_VOID) { - $message = "Invalid action!"; - return AN_RETURNZERO; - } - $poststring = $conststring; $poststring .= '&x_method=' . $method;