diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-26 21:35:39 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-26 21:35:39 +0000 |
commit | 2d4d79ac864d36ebe213b23bc3a5b14d97499d98 (patch) | |
tree | bca8337ce8cf74eb77c690ea87f9185626e3cecb /usr/local/www/pkg_mgr_installed.php | |
parent | 90099377ba5900b3803cf9915a2b0c58f7f06720 (diff) | |
download | pfsense-2d4d79ac864d36ebe213b23bc3a5b14d97499d98.zip pfsense-2d4d79ac864d36ebe213b23bc3a5b14d97499d98.tar.gz |
Fix fatal error when no packages are installed.
Diffstat (limited to 'usr/local/www/pkg_mgr_installed.php')
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index 859d012..4d37768 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -65,9 +65,8 @@ include("fbegin.inc"); </tr> <?php - $instpkgs = array(); - foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name']; if($config['installedpackages']['package'] != "") { + $instpkgs = array(); foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name']; asort($instpkgs); foreach ($instpkgs as $index => $pkgname){ @@ -112,6 +111,8 @@ include("fbegin.inc"); <?php } } + } else { + echo "<tr><td colspan=\"3\"><center>There are currently no packages installed.</td></tr>"; } ?> </table> |