aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-29 15:11:41 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-10-29 15:11:41 -0700
commitdc4bd531a4aee036d28dfc233662ac71e4f6e7df (patch)
tree9b93129430bf5a252bcb72c4b4aed990dd6af405 /util
parentbb469deb850dacc16e26ceb65f2a215a72eb6caa (diff)
downloadvolse-hubzilla-dc4bd531a4aee036d28dfc233662ac71e4f6e7df.tar.gz
volse-hubzilla-dc4bd531a4aee036d28dfc233662ac71e4f6e7df.tar.bz2
volse-hubzilla-dc4bd531a4aee036d28dfc233662ac71e4f6e7df.zip
issue #106
Diffstat (limited to 'util')
-rwxr-xr-xutil/service_class14
1 files changed, 9 insertions, 5 deletions
diff --git a/util/service_class b/util/service_class
index a1a172518..d3b60a2df 100755
--- a/util/service_class
+++ b/util/service_class
@@ -90,11 +90,15 @@ if($argc == 2) {
if($argc == 1) {
load_config('service_class');
- foreach($a->config['service_class'] as $class=>$props) {
- echo "$class:\n";
- $d = unserialize($props);
- foreach($d as $k => $v) {
- echo "\t$k = $v\n";
+ if(is_array($a->config['service_class']) && $a->config['service_class']) {
+ foreach($a->config['service_class'] as $class=>$props) {
+ echo "$class:\n";
+ $d = unserialize($props);
+ if(is_array($d) && $d) {
+ foreach($d as $k => $v) {
+ echo "\t$k = $v\n";
+ }
+ }
}
}
} \ No newline at end of file