diff options
author | Renato Botelho <renato@netgate.com> | 2015-07-01 14:31:28 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-07-01 14:33:55 -0300 |
commit | 45521d7c75d5cc5c34525e8cdfa2ad01fe897cd9 (patch) | |
tree | 1bd82ee5aa30949d5f891d13afa3c14f882662d5 /usr | |
parent | b75cdd94a7f6f571238dd313d5f499f05f819221 (diff) | |
download | pfsense-45521d7c75d5cc5c34525e8cdfa2ad01fe897cd9.zip pfsense-45521d7c75d5cc5c34525e8cdfa2ad01fe897cd9.tar.gz |
Remove $array_keys references and use $pkg_info. Spotted-by: phil-davis
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/pkg_mgr.php | 7 |
1 files changed, 2 insertions, 5 deletions
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"); <tr><td> <?php if ($pkg_info) { - $pkg_keys = array_keys($pkg_info); - natcasesort($pkg_keys); - //Check categories $categories = array(); foreach ($pkg_info as $pkg_data) { @@ -160,7 +157,7 @@ include("head.inc"); if (!$pkg_info) { echo "<tr><td colspan=\"5\"><center>" . gettext("There are currently no packages available for installation.") . "</td></tr>"; } 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 "<tr><td colspan='5' align='center'>" . gettext("There are currently no packages available for installation.") . "</td></tr>"; - } /* if (is_array($pkg_keys)) */ + } /* if (is_array($pkg_info)) */ } /* if (!$pkg_info) */ ?> </table> |