diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 22:29:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 22:29:12 +0000 |
commit | c279a6b189978f4a90e2ab1760bdd24b39b6eae6 (patch) | |
tree | 782b4afc76218e33874c84a35ba0debf4490421e /etc | |
parent | c52c9894ef1f5602d4d39eb372841aeeea468477 (diff) | |
download | pfsense-c279a6b189978f4a90e2ab1760bdd24b39b6eae6.zip pfsense-c279a6b189978f4a90e2ab1760bdd24b39b6eae6.tar.gz |
* Use $pkg_config['packages']['package']
* Dont use $pkg_config, use $pkg
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 944d76e..fcf80fd 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -406,8 +406,8 @@ function get_available_pkg_id($pkg_name) { $pkg_config = parse_xml_config_pkg("{$g['tmp_path']}/pkg_config.xml", "pfsensepkgs"); } $id = 0; - foreach($pkg_config as $pkg) { - if($pkg_config['name'] == $pkg_name) { + foreach($pkg_config['packages']['package'] as $pkg) { + if($pkg['name'] == $pkg_name) { return $id; } $id++; |