diff options
-rw-r--r-- | etc/inc/pfsense-utils.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 7b53979..4ec1924 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1007,7 +1007,7 @@ function auto_upgrade() { /* * check_firmware_version(): Check whether the current firmware installed is the most recently released. */ -function check_firmware_version() { +function check_firmware_version($return_php = true) { global $g; $versioncheck_base_url = $g['versioncheckbaseurl']; $versioncheck_path = $g['versioncheckpath']; @@ -1023,7 +1023,8 @@ function check_firmware_version() { $resp = $cli->send($msg); if(!$resp) return -1; if($resp->faultCode()) return -1; - return $resp->value(); + if($return_php == false) return $resp->serialize(); + return $resp->value(); } ?> |