From 45521d7c75d5cc5c34525e8cdfa2ad01fe897cd9 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 1 Jul 2015 14:31:28 -0300 Subject: Remove $array_keys references and use $pkg_info. Spotted-by: phil-davis --- usr/local/www/pkg_mgr.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'usr') diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index 97b1765..85f378f 100644 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -97,9 +97,6 @@ include("head.inc");
" . gettext("There are currently no packages available for installation.") . ""; } else { - if (is_array($pkg_keys)) { + if (is_array($pkg_info)) { foreach ($pkg_info as $index): if (get_package_id($index['name']) >= 0) { continue; @@ -211,7 +208,7 @@ include("head.inc"); endforeach; } else { echo "" . gettext("There are currently no packages available for installation.") . ""; - } /* if (is_array($pkg_keys)) */ + } /* if (is_array($pkg_info)) */ } /* if (!$pkg_info) */ ?> -- cgit v1.1