PrepareInsert("b_catalog_export", $arFields); $strSql = "insert into b_catalog_export(".$arInsert[0].") values(".$arInsert[1].")"; $DB->Query($strSql, false, "File: ".__FILE__."
Line: ".__LINE__); $ID = (int)$DB->LastID(); return $ID; } public static function Update($ID, $arFields) { global $DB; $ID = (int)$ID; if ($ID <= 0) return false; if (!CCatalogExport::CheckFields("UPDATE", $arFields)) return false; $strUpdate = $DB->PrepareUpdate("b_catalog_export", $arFields); if (!empty($strUpdate)) { $strSql = "update b_catalog_export set ".$strUpdate." where ID = ".$ID." and IS_EXPORT = 'Y'"; $DB->Query($strSql, false, "File: ".__FILE__."
Line: ".__LINE__); } return $ID; } }
[Error] 
Class 'CCatalogExport' not found (0)
/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php(162) : eval()'d code:1
#0: eval
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php:162
#1: CAgent::ExecuteAgents(string)
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php:40
#2: CAgent::CheckAgents()
	/home/bitrix/www/bitrix/modules/main/include.php:266
#3: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#4: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#5: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#6: require(string)
	/home/bitrix/www/catalog/index.php:1
#7: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#8: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2