CMain::ResetException()
The method ResetException resets the last exception.
<? $events = GetModuleEvents("main", "OnAfterUserLogin"); while($arEvent = $events->Fetch()) { $APPLICATION->ResetException(); ExecuteModuleEvent($arEvent, $login, $password, $remember, $USER_ID); if($err = $APPLICATION->GetException()) $RESULT_MESSAGE = Array("MESSAGE"=>$err->GetString()."<br>", "TYPE"=>"ERROR"); } ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |