function Add($arFields) { global $DB; if (!CExtra::CheckFields('ADD', $arFields, 0)) { return false; } $intID = ''; if (!CExtra::PrepareInsert($arFields, $intID)) { return false; } $res = $DB->Insert('b_catalog_extra', $arFields, "File: " . __FILE__ . "<br>Line: " . __LINE__, false, $intID); unset($GLOBALS["MAIN_EXTRA_LIST_CACHE"]); return $res; }