SHARE
TWEET

Untitled

a guest Jun 24th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?//result_modifier.php
  2. foreach($arResult["ITEMS"] as $arItem):
  3.     if(isset($arItem["PROPERTIES"]["MORE_PHOTO"]["VALUE"]) && is_array($arItem["PROPERTIES"]["MORE_PHOTO"]["VALUE"]))
  4.     {
  5.         foreach($arItem["PROPERTIES"]["MORE_PHOTO"]["VALUE"] as $FILE)
  6.         {
  7.             $FILE = CFile::GetFileArray($FILE);
  8.             if(is_array($FILE))
  9.                 $arResult["MORE_PHOTO"][$arItem["ID"]][]=$FILE;
  10.         }
  11.     }
  12. endforeach;
  13. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top