aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/AbConfig.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/AbConfig.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/AbConfig.php')
-rw-r--r--Zotlabs/Lib/AbConfig.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/AbConfig.php b/Zotlabs/Lib/AbConfig.php
index cb5d96951..dfc9efc6c 100644
--- a/Zotlabs/Lib/AbConfig.php
+++ b/Zotlabs/Lib/AbConfig.php
@@ -16,7 +16,7 @@ class AbConfig {
}
- static public function Get($chan,$xhash,$family,$key) {
+ static public function Get($chan,$xhash,$family,$key, $default = false) {
$r = q("select * from abconfig where chan = %d and xchan = '%s' and cat = '%s' and k = '%s' limit 1",
intval($chan),
dbesc($xhash),
@@ -26,7 +26,7 @@ class AbConfig {
if($r) {
return ((preg_match('|^a:[0-9]+:{.*}$|s', $r[0]['v'])) ? unserialize($r[0]['v']) : $r[0]['v']);
}
- return false;
+ return $default;
}