Project

General

Profile

Bug #2203 ยป 2203.patch

krileon, 24 January 2011 16:55

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
$response->username = $username;
$response->fullname = $row->name;
// now we attempt user login and check results:
$login = $dispatcher->trigger( 'onLoginUser', array( (array) $response, array() ) );
if ( checkJversion() == 2 ) {
$login = $dispatcher->trigger( 'onUserLogin', array( (array) $response, array( 'action' => 'core.login.site' ) ) );
} else {
$login = $dispatcher->trigger( 'onLoginUser', array( (array) $response, array() ) );
}
if ( ! in_array( false, $login, true ) ) {
$result = true;
} else {
$result = false;
}
}
if ( $result ) {
    (1-1/1)