public static function __UpdateComponents($ID, $arFields) { global $DB; $ID = intval($ID); $err_mess = CRatings::err_mess() . "<br>Function: __UpdateComponents<br>Line: "; $DB->Query("DELETE FROM b_rating_component WHERE RATING_ID={$ID}", false, $err_mess . __LINE__); CRatings::__AddComponents($ID, $arFields); return true; }