} if($strWarning == '') { if(!$customTabber->Action()) { if ($ex = $APPLICATION->GetException()) $strWarning .= $ex->GetString(); else $strWarning .= "Error. "; } } if($strWarning != '') { $error = new _CIBlockError(2, "BAD_SAVE", $strWarning); $bVarsFromForm = true; $DB->Rollback(); } else { if($bWorkflow) CIBlockElement::WF_UnLock($ID); $arFields['ID'] = $ID; if (function_exists('BXIBlockAfterSave')) BXIBlockAfterSave($arFields); $DB->Commit(); if(strlen($apply) <= 0 && strlen($save_and_add) <= 0)
public function _CIBlockError($err_level = false, $err_type = "", $err_text = "") { $this->err_type = $err_type; $this->err_text = preg_replace("#<br>\$#i", "", $err_text); $this->err_level = $err_level; _CIBlockError::GetErrorText($this); }