Answer the question
In order to leave comments, you need to log in
Why does the script suddenly stop running?
I am updating an element
//update element
if($_REQUEST['action']=='update'){
$el = new CIBlockElement;
$PROP = array();
foreach ($_REQUEST as $key=>$value){
$PROP[$key]=$value;
}
$arLoadProductArray = Array(
"IBLOCK_SECTION_ID" => false,
"PROPERTY_VALUES"=> $PROP,
"NAME" => $PROP["name"],
"ACTIVE" => "Y",
"PREVIEW_TEXT" => "",
"DETAIL_TEXT" => "",
"DETAIL_PICTURE" => ""
);
$PRODUCT_ID = $PROP["ID"];
$el->Update($PRODUCT_ID, $arLoadProductArray);
echo "Error: ".$el->LAST_ERROR;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question