diff options
author | Ermal <eri@pfsense.org> | 2011-03-25 22:44:13 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-25 22:44:13 +0000 |
commit | 3b68081f5a49e5b9eae96e35f8bf7f448acd89e1 (patch) | |
tree | 897d243e5f76448017479451446a4e28901bb978 /etc/inc/voucher.inc | |
parent | 2fe347eb723969d83ed57fc12bbeff9dabde36c8 (diff) | |
download | pfsense-3b68081f5a49e5b9eae96e35f8bf7f448acd89e1.zip pfsense-3b68081f5a49e5b9eae96e35f8bf7f448acd89e1.tar.gz |
Make the return values on error consistent with the normal return value.
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r-- | etc/inc/voucher.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index 55c0343..d5c040b 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -119,12 +119,12 @@ EOF; $error = "A communications error occurred while attempting CaptivePortalVoucherSync XMLRPC sync with {$url}:{$port} (pfsense.exec_php)."; log_error($error); file_notice("CaptivePortalVoucherSync", $error, "Communications error occurred", ""); - return array("timeleft" => "0"); + return 0; // $timeleft } elseif($resp->faultCode()) { $error = "An error code was received while attempting CaptivePortalVoucherSync XMLRPC sync with {$url}:{$port} - Code " . $resp->faultCode() . ": " . $resp->faultString(); log_error($error); file_notice("CaptivePortalVoucherSync", $error, "Error code received", ""); - return array("timeleft" => "0"); + return 0; // $timeleft } else { log_error("CaptivePortalVoucherSync XMLRPC reload data success with {$url}:{$port} (pfsense.exec_php)."); } |