From 9fd2c2dd8ac6a5b015a30eb0508d387c15df9575 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 11 Nov 2012 19:12:20 -0800 Subject: hush-hush ultra top-secret mode --- include/text.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 6c1a102c0..ee7595c01 100644 --- a/include/text.php +++ b/include/text.php @@ -341,7 +341,12 @@ function sanitise_acl(&$item) { if(! function_exists('perms2str')) { function perms2str($p) { $ret = ''; - $tmp = $p; + + if(is_array($p)) + $tmp = $p; + else + $tmp = explode(',',$p); + if(is_array($tmp)) { array_walk($tmp,'sanitise_acl'); $ret = implode('',$tmp); -- cgit v1.2.3