`last_login`=UNIX_TIMESTAMP()
WHERE
`userid`=%s AND
- `last_login` < (UNIX_TIMESTAMP() - {?login_timeout?})
+ (UNIX_TIMESTAMP() - `last_login`) >= {?login_timeout?}
LIMIT 1',
array(
getMemberId()
if (($bonus === true) && (getRequestParameter('mode') == 'bonus')) {
// Output message with added points
$GLOBALS['message'] .= '<div class="tiny">{--MEMBER_BONUS_LOGIN_BONUS_ADDED--}</div>';
- } elseif (isExtensionActive('bonus')) {
+ } else {
// No login bonus added!
$GLOBALS['message'] .= '<div class="notice">{--MEMBER_BONUS_LOGIN_BONUS_NOT_ADDED--}</div>';
}