aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/PConfig.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-24 22:36:37 -0700
committerredmatrix <git@macgirvin.com>2016-07-24 22:36:37 -0700
commit063b4286e7feae472d52e9717ba1bafede48d1b4 (patch)
tree12c4da3899804e9eb0bee117bd708d44e1e3ef04 /Zotlabs/Lib/PConfig.php
parent271f85be3b36a4d4aac55a51cb7ff2580a95ce3e (diff)
downloadvolse-hubzilla-063b4286e7feae472d52e9717ba1bafede48d1b4.tar.gz
volse-hubzilla-063b4286e7feae472d52e9717ba1bafede48d1b4.tar.bz2
volse-hubzilla-063b4286e7feae472d52e9717ba1bafede48d1b4.zip
trace log pconfig cache if for some reason it isn't an array
Diffstat (limited to 'Zotlabs/Lib/PConfig.php')
-rw-r--r--Zotlabs/Lib/PConfig.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zotlabs/Lib/PConfig.php b/Zotlabs/Lib/PConfig.php
index 319b8f203..a481667a5 100644
--- a/Zotlabs/Lib/PConfig.php
+++ b/Zotlabs/Lib/PConfig.php
@@ -23,6 +23,14 @@ class PConfig {
if(! array_key_exists($uid, \App::$config))
\App::$config[$uid] = array();
+ if(! is_array(\App::$config)) {
+ btlogger('App::$config not an array: ' . $uid);
+ }
+
+ if(! is_array(\App::$config[$uid])) {
+ btlogger('App::$config[$uid] not an array: ' . $uid);
+ }
+
$r = q("SELECT * FROM pconfig WHERE uid = %d",
intval($uid)
);