aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/PConfig.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-05 14:50:34 -0800
committerzotlabs <mike@macgirvin.com>2016-12-05 14:50:34 -0800
commitfbf13dde213dcecfdc6c6e5d95b165bb46eda85a (patch)
tree61d1e5fef7b9569b71b1a39ea6be5bec35b800d7 /Zotlabs/Lib/PConfig.php
parentbdd713413abaf85f2cb8de86ef9c4032f8a91bd5 (diff)
downloadvolse-hubzilla-fbf13dde213dcecfdc6c6e5d95b165bb46eda85a.tar.gz
volse-hubzilla-fbf13dde213dcecfdc6c6e5d95b165bb46eda85a.tar.bz2
volse-hubzilla-fbf13dde213dcecfdc6c6e5d95b165bb46eda85a.zip
minor changes to config api and markdown_to_bb
Diffstat (limited to 'Zotlabs/Lib/PConfig.php')
-rw-r--r--Zotlabs/Lib/PConfig.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Lib/PConfig.php b/Zotlabs/Lib/PConfig.php
index 3b47a250a..d70697fbc 100644
--- a/Zotlabs/Lib/PConfig.php
+++ b/Zotlabs/Lib/PConfig.php
@@ -67,16 +67,16 @@ class PConfig {
* @return mixed Stored value or false if it does not exist
*/
- static public function Get($uid,$family,$key,$instore = false) {
+ static public function Get($uid,$family,$key,$default = false) {
if(is_null($uid) || $uid === false)
- return false;
+ return $default;
if(! array_key_exists($uid, \App::$config))
self::Load($uid);
if((! array_key_exists($family, \App::$config[$uid])) || (! array_key_exists($key, \App::$config[$uid][$family])))
- return false;
+ return $default;
return ((! is_array(\App::$config[$uid][$family][$key])) && (preg_match('|^a:[0-9]+:{.*}$|s', \App::$config[$uid][$family][$key]))
? unserialize(\App::$config[$uid][$family][$key])