summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_services.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index 51e8a38..9ccda16 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -48,9 +48,11 @@ function gentitle_pkg($pgname) {
function get_pkg_descr($package_name) {
global $config;
- foreach($config['installedpackages']['package'] as $pkg) {
- if($pkg['name'] == $package_name)
- return $pkg['descr'];
+ if (is_array($config['installedpackages']['package'])) {
+ foreach($config['installedpackages']['package'] as $pkg) {
+ if($pkg['name'] == $package_name)
+ return $pkg['descr'];
+ }
}
return "Not available.";
}
OpenPOWER on IntegriCloud