# 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 @@ -730,7 +730,7 @@ if ( checkJversion() == 2 ) { global $_CB_framework; - $this->gids = array_values( JFactory::getUser( $this->id )->groups ); + $this->gids = array_values( (array) JFactory::getUser( $this->id )->groups ); $this->gid = (int) $_CB_framework->acl->getBackwardsCompatibleGid( $this->gids ); } elseif ( checkJversion() == 0 ) { if ( checkJversion( 'dev_level' ) < 11 ) { @@ -828,7 +828,7 @@ if ( checkJversion() == 2 ) { global $_CB_framework; - $this->gids = array_values( JFactory::getUser( $this->id )->groups ); + $this->gids = array_values( (array) JFactory::getUser( $this->id )->groups ); $this->gid = (int) $_CB_framework->acl->getBackwardsCompatibleGid( $this->gids ); } else { $this->gids = array( $this->gid ); @@ -1037,7 +1037,7 @@ if ( $_CB_database->loadObject( $oldEntry ) ) { $oldUsername = $oldEntry->username; if ( checkJversion() == 2 ) { - $oldGids = array_values( JFactory::getUser( $this->id )->groups ); + $oldGids = array_values( (array) JFactory::getUser( $this->id )->groups ); $oldGid = (int) $_CB_framework->acl->getBackwardsCompatibleGid( $oldGids ); } else { $oldGid = (int) $oldEntry->gid; @@ -1095,7 +1095,7 @@ } } else { if ( checkJversion() == 2 ) { - $this->_cmsUser->groups = $this->gids; + $this->_cmsUser->groups = (array) $this->gids; } $result = $this->_cmsUser->save(); // Joomla 1.5 native if ( ! $result ) {