Created
May 31, 2018 14:50
-
-
Save Postnov/1638951b8acc432dd032d899d0ab4e09 to your computer and use it in GitHub Desktop.
More photo bitrix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $arResult["MORE_PHOTO"] = array(); | |
if (isset($arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"]) && is_array($arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"])) { | |
foreach($arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] as $FILE){ | |
$FILE = CFile::GetFileArray($FILE); | |
if (is_array($FILE)) $arResult["MORE_PHOTO"][] = $FILE; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment