diff options
author | git-marijus <mario@mariovavti.com> | 2017-08-10 09:40:02 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-08-10 09:40:02 +0200 |
commit | d1c7e789902a09b1ebdd9ae2e388a18f92467e43 (patch) | |
tree | 49ea423e4a22e5516431aa12d8bf6f7679bede33 /Zotlabs/Lib/PConfig.php | |
parent | 09da109ebaf1b5f287db7065eaee5026b0a88eb1 (diff) | |
parent | 0a96cdd950f30974fe0fecf60b214701673dad86 (diff) | |
download | volse-hubzilla-d1c7e789902a09b1ebdd9ae2e388a18f92467e43.tar.gz volse-hubzilla-d1c7e789902a09b1ebdd9ae2e388a18f92467e43.tar.bz2 volse-hubzilla-d1c7e789902a09b1ebdd9ae2e388a18f92467e43.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla 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])) { |