From fcb89c63110b7461c41f5e1b80313391336c02cd Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 14 Nov 2012 18:18:28 -0800 Subject: groups now take xchans, so you can have groups containing channels that you aren't connected with --- include/text.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 7f036f502..56f41d797 100644 --- a/include/text.php +++ b/include/text.php @@ -310,16 +310,18 @@ function alt_pager(&$a, $i) { if(! function_exists('expand_acl')) { function expand_acl($s) { - // turn string array of angle-bracketed elements into numeric array - // e.g. "<1><2><3>" => array(1,2,3); + + // turn string array of angle-bracketed elements into string array + // e.g. "<123xyz><246qyo>" => array(123xyz,246qyo,sxo33e); + $ret = array(); if(strlen($s)) { $t = str_replace('<','',$s); $a = explode('>',$t); foreach($a as $aa) { - if(intval($aa)) - $ret[] = intval($aa); + if($aa) + $ret[] = $aa; } } return $ret; @@ -330,7 +332,7 @@ function expand_acl($s) { if(! function_exists('sanitise_acl')) { function sanitise_acl(&$item) { if(intval($item)) - $item = '<' . intval(notags(trim($item))) . '>'; + $item = '<' . notags(trim($item)) . '>'; else unset($item); }} -- cgit v1.2.3