trace log pconfig cache if for some reason it isn't an array

This commit is contained in:
redmatrix
2016-07-24 22:36:37 -07:00
parent 271f85be3b
commit 063b4286e7
2 changed files with 9 additions and 1 deletions

View File

@@ -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)
);