turn groups back into numbers

This commit is contained in:
Mike Macgirvin
2010-07-13 02:00:53 -07:00
parent 7e16f8cdae
commit c6267a2cd2
4 changed files with 13 additions and 20 deletions
+3 -3
View File
@@ -170,7 +170,7 @@ function profile_content(&$a) {
$gs = '<<>>'; // should be impossible to match
if(count($groups)) {
foreach($groups as $g)
$gs .= '|<' . dbesc($g) . '>';
$gs .= '|<' . intval($g) . '>';
}
$sql_extra = sprintf(
" AND ( `allow_cid` = '' OR `allow_cid` REGEXP '<%d>' )
@@ -180,8 +180,8 @@ function profile_content(&$a) {
intval($_SESSION['visitor_id']),
intval($_SESSION['visitor_id']),
$gs,
$gs
dbesc($gs),
dbesc($gs)
);
}