diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-29 15:11:41 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-29 15:11:41 -0700 |
commit | dc4bd531a4aee036d28dfc233662ac71e4f6e7df (patch) | |
tree | 9b93129430bf5a252bcb72c4b4aed990dd6af405 /util/service_class | |
parent | bb469deb850dacc16e26ceb65f2a215a72eb6caa (diff) | |
download | volse-hubzilla-dc4bd531a4aee036d28dfc233662ac71e4f6e7df.tar.gz volse-hubzilla-dc4bd531a4aee036d28dfc233662ac71e4f6e7df.tar.bz2 volse-hubzilla-dc4bd531a4aee036d28dfc233662ac71e4f6e7df.zip |
issue #106
Diffstat (limited to 'util/service_class')
-rwxr-xr-x | util/service_class | 14 |
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 |