From 060716f1721c320c61ce1a5927f24d0a66ec31f0 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 20 Jan 2013 18:05:29 -0800 Subject: make lockview work, bring back acl widget theming in redbasic --- include/text.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/text.php') 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]) . "'"; } /** -- cgit v1.2.3