aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php7
1 files changed, 6 insertions, 1 deletions
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);