diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-09 22:45:52 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-09 22:45:52 -0700 |
commit | 568690186961d2946543c8320faf5575758acfca (patch) | |
tree | 8b7d7a686352befb2918290ad0bc606fa9a1230b /Zotlabs/Lib | |
parent | 6531cbd1d286738acb9448b141bf4d7d5f97ccf3 (diff) | |
download | volse-hubzilla-568690186961d2946543c8320faf5575758acfca.tar.gz volse-hubzilla-568690186961d2946543c8320faf5575758acfca.tar.bz2 volse-hubzilla-568690186961d2946543c8320faf5575758acfca.zip |
some doco fixes and other real minor stuff to improve logreading ability
Diffstat (limited to 'Zotlabs/Lib')
-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])) { |