Revision 3b68081f
Added by Ermal LUÇI over 14 years ago
etc/inc/voucher.inc | ||
---|---|---|
119 | 119 |
$error = "A communications error occurred while attempting CaptivePortalVoucherSync XMLRPC sync with {$url}:{$port} (pfsense.exec_php)."; |
120 | 120 |
log_error($error); |
121 | 121 |
file_notice("CaptivePortalVoucherSync", $error, "Communications error occurred", ""); |
122 |
return array("timeleft" => "0");
|
|
122 |
return 0; // $timeleft
|
|
123 | 123 |
} elseif($resp->faultCode()) { |
124 | 124 |
$error = "An error code was received while attempting CaptivePortalVoucherSync XMLRPC sync with {$url}:{$port} - Code " . $resp->faultCode() . ": " . $resp->faultString(); |
125 | 125 |
log_error($error); |
126 | 126 |
file_notice("CaptivePortalVoucherSync", $error, "Error code received", ""); |
127 |
return array("timeleft" => "0");
|
|
127 |
return 0; // $timeleft
|
|
128 | 128 |
} else { |
129 | 129 |
log_error("CaptivePortalVoucherSync XMLRPC reload data success with {$url}:{$port} (pfsense.exec_php)."); |
130 | 130 |
} |
Also available in: Unified diff
Make the return values on error consistent with the normal return value.