aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorZot <mike@macgirvin.com>2019-03-18 09:35:53 +0100
committerMario <mario@mariovavti.com>2019-03-18 09:35:53 +0100
commitea9925f489602529891c0ed468cf35117e7ef454 (patch)
tree4f2dea61bdc49be73de4ae00fc4e22937361df3e /util
parente28bde6ccdb03b370df1dbc8654d69c905b8a235 (diff)
downloadvolse-hubzilla-ea9925f489602529891c0ed468cf35117e7ef454.tar.gz
volse-hubzilla-ea9925f489602529891c0ed468cf35117e7ef454.tar.bz2
volse-hubzilla-ea9925f489602529891c0ed468cf35117e7ef454.zip
clone systems apps to the extent possible, auto-configure imagick thumbnail binary during setup if possible
Diffstat (limited to 'util')
-rwxr-xr-xutil/service_class7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/service_class b/util/service_class
index 50f01afff..b8a1f2386 100755
--- a/util/service_class
+++ b/util/service_class
@@ -93,7 +93,12 @@ if($argc == 1) {
if(is_array(App::$config['service_class']) && App::$config['service_class']) {
foreach(App::$config['service_class'] as $class=>$props) {
echo "$class:\n";
- $d = unserialize($props);
+
+ $d = ((! is_array($props)) && (preg_match('|^a:[0-9]+:{.*}$|s', $props))
+ ? unserialize($props)
+ : $props
+ );
+
if(is_array($d) && $d) {
foreach($d as $k => $v) {
echo "\t$k = $v\n";