make lockview work, bring back acl widget theming in redbasic

This commit is contained in:
friendica
2013-01-20 18:05:29 -08:00
parent 127b605f32
commit 060716f172
4 changed files with 134 additions and 44 deletions

View File

@@ -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]) . "'";
}
/**