# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/library/cb/cb.acl.php +++ administrator/components/com_comprofiler/library/cb/cb.acl.php @@ -733,22 +733,24 @@ $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 { \ No newline at end of file + + $rows = $grps; + } elseif ( ! $rows ) { \ No newline at end of file $rows = array(); }