|
@@ 210-212 (lines=3) @@
|
| 207 |
|
return ''; |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
if (!$element["HLBLOCK_ID"] && $element["HLBLOCK_TABLE_NAME"]) { |
| 211 |
|
$element["HLBLOCK_ID"] = static::prepareHLBlockIdByTableName($element["HLBLOCK_TABLE_NAME"]); |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
if (!$element["HLBLOCK_ID"] || !$element['ID']) { |
| 215 |
|
throw new InvalidArgumentException('Element must include ID and HLBLOCK_ID/HLBLOCK_TABLE_NAME'); |
|
@@ 242-244 (lines=3) @@
|
| 239 |
|
return ''; |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
if (!$element["HLBLOCK_ID"] && $element["HLBLOCK_TABLE_NAME"]) { |
| 243 |
|
$element["HLBLOCK_ID"] = static::prepareHLBlockIdByTableName($element["HLBLOCK_TABLE_NAME"]); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
if (!$element["HLBLOCK_ID"] || !$element['ID']) { |
| 247 |
|
throw new InvalidArgumentException('Element must include ID and HLBLOCK_ID/HLBLOCK_TABLE_NAME'); |