aboutsummaryrefslogtreecommitdiffstats
path: root/include/config.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-18 02:06:16 -0700
committerfriendica <info@friendica.com>2013-06-18 02:06:16 -0700
commitc0cc494bf36a61885bc3391e6f05b48baafb312a (patch)
treeefc753e7b2e9d8b28e873dcc3fba4c22b68dd2cb /include/config.php
parent5f84e3940d6a6ba8732104bf376921c061808f18 (diff)
downloadvolse-hubzilla-c0cc494bf36a61885bc3391e6f05b48baafb312a.tar.gz
volse-hubzilla-c0cc494bf36a61885bc3391e6f05b48baafb312a.tar.bz2
volse-hubzilla-c0cc494bf36a61885bc3391e6f05b48baafb312a.zip
fix mod-display when not logged in.
Diffstat (limited to 'include/config.php')
-rw-r--r--include/config.php6
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);