Commit a895d16a authored by Kulya's avatar Kulya 😊

Upd alvbx add sect7

parent 649a82b3
......@@ -492,11 +492,8 @@ class AloVoiceRest
$addParams["iblockSectionId"] = $parent_id;
}
$res = BxRest::call("catalog.section.add",["fields"=>$addParams]);
if(!empty($res["result"])){
$result = $res["result"];
}
else {
$result = $res;
if(!empty($res["result"]["section"]["id"])){
$result = $res["result"]["section"]["id"];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment