aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-20 18:05:29 -0800
committerfriendica <info@friendica.com>2013-01-20 18:05:29 -0800
commit060716f1721c320c61ce1a5927f24d0a66ec31f0 (patch)
treeee4b091cde3ac021cddd0e3ca187889553814bb9 /include
parent127b605f32f8b01900d300cd869c3848e6bebb9b (diff)
downloadvolse-hubzilla-060716f1721c320c61ce1a5927f24d0a66ec31f0.tar.gz
volse-hubzilla-060716f1721c320c61ce1a5927f24d0a66ec31f0.tar.bz2
volse-hubzilla-060716f1721c320c61ce1a5927f24d0a66ec31f0.zip
make lockview work, bring back acl widget theming in redbasic
Diffstat (limited to 'include')
-rw-r--r--include/text.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index 6f2caa510..167fbb1df 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1798,9 +1798,11 @@ function magic_link($s) {
return $s;
}
-function stringify_array_elms(&$arr) {
+// if $escape is true, dbesc() each element before adding quotes
+
+function stringify_array_elms(&$arr,$escape = false) {
for($x = 0; $x < count($arr); $x ++)
- $arr[$x] = "'" . $arr[$x] . "'";
+ $arr[$x] = "'" . (($escape) ? dbesc($arr[$x]) : $arr[$x]) . "'";
}
/**