summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_mgr_installed.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-05-10 15:45:46 -0300
committerRenato Botelho <renato@netgate.com>2017-05-10 15:45:46 -0300
commit3459c6ec61e40d41f14c366c08f30f981e78ba0f (patch)
tree49326721c34db2831ad40ed8536bea951eacb987 /src/usr/local/www/pkg_mgr_installed.php
parent6e0bfeb217a5c812dfe4f0d217a318476f5815ca (diff)
parentdd6ecfa27246935ca03747162b802fcd4ba36100 (diff)
downloadpfsense-3459c6ec61e40d41f14c366c08f30f981e78ba0f.zip
pfsense-3459c6ec61e40d41f14c366c08f30f981e78ba0f.tar.gz
Merge pull request #3719 from phil-davis/no-packages
Diffstat (limited to 'src/usr/local/www/pkg_mgr_installed.php')
-rw-r--r--src/usr/local/www/pkg_mgr_installed.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/usr/local/www/pkg_mgr_installed.php b/src/usr/local/www/pkg_mgr_installed.php
index 7fbb37f..6e8a46e 100644
--- a/src/usr/local/www/pkg_mgr_installed.php
+++ b/src/usr/local/www/pkg_mgr_installed.php
@@ -46,28 +46,19 @@ if (($_REQUEST) && ($_REQUEST['ajax'])) {
}
function get_pkg_table() {
- $installed_packages = array();
- $package_list = get_pkg_info();
+ $installed_packages = get_pkg_info('all', false, true);
- if (!$package_list) {
+ if (is_array($input_errors)) {
print("error");
exit;
}
- foreach ($package_list as $pkg) {
- if (!isset($pkg['installed']) && !isset($pkg['broken'])) {
- continue;
- }
- $installed_packages[] = $pkg;
- }
-
- $pkgtbl = "";
-
if (empty($installed_packages)) {
print ("nopkg");
exit;
}
+ $pkgtbl = "";
$pkgtbl .=' <div class="table-responsive">';
$pkgtbl .=' <table class="table table-striped table-hover table-condensed">';
$pkgtbl .=' <thead>';
OpenPOWER on IntegriCloud