Код |
---|
$regEx = "/([\s]*)[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i"; preg_match_all($regEx, $arMessageFields["FIELD_FROM"], $emailsArr); $arMyRes = CUser::GetList(($by="id"), ($order="asc"), array("EMAIL" => $emailsArr[0][0])); if ($arMyRes2 = $arMyRes->Fetch()) { $arUsGr = CUser::GetUserGroup($arMyRes2 ["ID"]); if($APPLICATION->GetUserRight("support", $arUsGr) <= "D") return false; return true; } else { return false; } |
Цитата |
---|
Fatal error: Call to a member function GetUserRight() on a non-object in ........ ./bitrix/modules/mail/classes/general/mail.php(2684) : e val()'d code on line 7 |