summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pkg-utils.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index a6386a5..bbc8e90 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -95,10 +95,14 @@ function get_pkg_info($pkgs = 'all', $info = 'all') {
global $g;
$params = array("pkg" => $pkgs, "info" => $info);
$msg = new XML_RPC_Message('pfsense.get_pkgs', array(php_value_to_xmlrpc($params)));
- $cli = new XML_RPC_Client($g['versioncheckpath'], $g['versioncheckbaseurl']);
+ $cli = new XML_RPC_Client($g['versioncheckpath'] . "adlkjh ", $g['versioncheckbaseurl']);
$resp = $cli->send($msg, 10);
- $raw_versions = $resp->value();
- return xmlrpc_value_to_php($raw_versions);
+ if($resp and !$resp->faultCode()) {
+ $raw_versions = $resp->value();
+ return xmlrpc_value_to_php($raw_versions);
+ } else {
+ return array();
+ }
}
/*
OpenPOWER on IntegriCloud