Project

General

Profile

Bug #2225 » plugin.foundation.patch

krileon, 24 January 2011 17:04

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
$session->userid = (int) $row->id;
$session->usertype = $row->usertype;
$session->gid = (int) $row->gid;
$session->gids = ( is_array( $row->gids ) ? $row->gids : array( $row->gid ) );
// attempt to login user:
if ( $session->update() ) {
......
$tmpDatabase =& JFactory::getDBO();
$my =& JFactory::getUser();
$acl =& JFactory::getACL();
$myAid = end( array_keys( $my->groups ) );
$myAid = array_values( $my->groups );
if ( in_array( 8, $myAid ) ) {
$myAid = 8;
} elseif ( in_array( 7, $myAid ) ) {
$myAid = 7;
} elseif ( in_array( 6, $myAid ) ) {
$myAid = 6;
} else {
$myAid = end( $myAid );
}
$sefFunc = array( 'JRoute', '_' );
$sefFuncHtmlEnt = false;
$cmsUser = 'JUser';
(4-4/12)