Project

General

Profile

Bug #3301 ยป 3301.patch

krileon, 22 February 2012 20:17

View differences:

administrator/components/com_comprofiler/library/cb/cb.acl.php
$rows = $gids[$id];
if ( $rows ) {
if ( $raw ) {
// in raw mode, makes array of strict ints:
$grps = array( -2 );
if ( $raw ) {
// in raw mode, makes array of strict ints:
$grps = array( -2 );
if ( $myId ) {
$grps[] = -1;
}
if ( $myId ) {
$grps[] = -1;
}
if ( $rows ) {
foreach ( $rows as $row ) {
$grps[] = (int) $row->value;
}
$rows = $grps;
} else {
$grps[] = (int) $this->mapGroupNamesToValues( 'Public' );
}
} else {
$rows = $grps;
} elseif ( ! $rows ) {
$rows = array();
}
    (1-1/1)