# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/library/cb/cb.tables.php +++ administrator/components/com_comprofiler/library/cb/cb.tables.php @@ -738,7 +738,13 @@ if ( checkJversion() == 2 ) { global $_CB_framework; - $this->gids = array_values( (array) JFactory::getUser( $this->id )->groups ); + $gids = array_values( (array) JFactory::getAcl()->getGroupsByUser( $this->id, false ) ); + + foreach ( $gids as $k => $v ) { + $gids[$k] = (string) $v; + } + + $this->gids = $gids; $this->gid = (int) $_CB_framework->acl->getBackwardsCompatibleGid( $this->gids ); } else { $this->gids = array( $this->gid ); @@ -837,7 +843,13 @@ if ( checkJversion() == 2 ) { global $_CB_framework; - $this->gids = array_values( (array) JFactory::getUser( $this->id )->groups ); + $gids = array_values( (array) JFactory::getAcl()->getGroupsByUser( $this->id, false ) ); + + foreach ( $gids as $k => $v ) { + $gids[$k] = (string) $v; + } + + $this->gids = $gids; $this->gid = (int) $_CB_framework->acl->getBackwardsCompatibleGid( $this->gids ); } else { $this->gids = array( $this->gid ); @@ -1046,7 +1058,13 @@ if ( $_CB_database->loadObject( $oldEntry ) ) { $oldUsername = $oldEntry->username; if ( checkJversion() == 2 ) { - $oldGids = array_values( (array) JFactory::getUser( $this->id )->groups ); + $gids = array_values( (array) JFactory::getAcl()->getGroupsByUser( $this->id, false ) ); + + foreach ( $gids as $k => $v ) { + $gids[$k] = (string) $v; + } + + $oldGids = $gids; $oldGid = (int) $_CB_framework->acl->getBackwardsCompatibleGid( $oldGids ); } else { $oldGid = (int) $oldEntry->gid;