diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-08-10 08:09:02 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-08-10 08:09:02 +0200 |
commit | 0a96cdd950f30974fe0fecf60b214701673dad86 (patch) | |
tree | e7ee642601cd4fd980ca6bd2a038d742c77b4369 /Zotlabs/Lib/PConfig.php | |
parent | 8ab3a4ebd7fd25fe4b01e92c8d2f4507b0c6ff3d (diff) | |
download | volse-hubzilla-0a96cdd950f30974fe0fecf60b214701673dad86.tar.gz volse-hubzilla-0a96cdd950f30974fe0fecf60b214701673dad86.tar.bz2 volse-hubzilla-0a96cdd950f30974fe0fecf60b214701673dad86.zip |
merge red/master into dev
Diffstat (limited to 'Zotlabs/Lib/PConfig.php')
-rw-r--r-- | Zotlabs/Lib/PConfig.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Lib/PConfig.php b/Zotlabs/Lib/PConfig.php index 25478e764..2a0b18aac 100644 --- a/Zotlabs/Lib/PConfig.php +++ b/Zotlabs/Lib/PConfig.php @@ -20,11 +20,12 @@ class PConfig { if(is_null($uid) || $uid === false) return false; - if(! array_key_exists($uid, \App::$config)) - \App::$config[$uid] = array(); - if(! is_array(\App::$config)) { - btlogger('App::$config not an array: ' . $uid); + btlogger('App::$config not an array'); + } + + if(! array_key_exists($uid, \App::$config)) { + \App::$config[$uid] = array(); } if(! is_array(\App::$config[$uid])) { |