Guest User

Untitled

a guest
Dec 17th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?
  2. foreach($arResult["ITEMS"] as $index => $arItem)
  3. {
  4. if (!empty($arItem["PROPERTIES"]["PHOTO_MAIN"]["VALUE"]))
  5. {
  6. $arResult["ITEMS"][$index]["PROPERTIES"]["PHOTO_MAIN"]["SRC"] = CFile::GetPath($arItem["PROPERTIES"]["PHOTO_MAIN"]["VALUE"]);
  7. }
  8. }
Add Comment
Please, Sign In to add comment