diff options
author | friendica <info@friendica.com> | 2013-06-18 02:06:16 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-18 02:06:16 -0700 |
commit | c0cc494bf36a61885bc3391e6f05b48baafb312a (patch) | |
tree | efc753e7b2e9d8b28e873dcc3fba4c22b68dd2cb /include | |
parent | 5f84e3940d6a6ba8732104bf376921c061808f18 (diff) | |
download | volse-hubzilla-c0cc494bf36a61885bc3391e6f05b48baafb312a.tar.gz volse-hubzilla-c0cc494bf36a61885bc3391e6f05b48baafb312a.tar.bz2 volse-hubzilla-c0cc494bf36a61885bc3391e6f05b48baafb312a.zip |
fix mod-display when not logged in.
Diffstat (limited to 'include')
-rw-r--r-- | include/config.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.php b/include/config.php index 5b74f6292..7d2dbdcc7 100644 --- a/include/config.php +++ b/include/config.php @@ -114,6 +114,9 @@ function del_config($family,$key) { function load_pconfig($uid,$family = '') { global $a; + if($uid === false) + return false; + if(! array_key_exists($uid,$a->config)) $a->config[$uid] = array(); if(($family) && (! array_key_exists($family,$a->config[$uid]))) @@ -151,6 +154,9 @@ function get_pconfig($uid,$family, $key, $instore = false) { global $a; + if($uid === false) + return false; + if(! array_key_exists($uid,$a->config)) load_pconfig($uid); |