From: Stephen Cameron Date: Mon, 22 Jul 2019 17:31:27 +0000 (+0200) Subject: Fix PageData getImageURLList function. WIP #2738 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0267c6ce6733fe7ba4309497b9308418585de466;p=cubist_cms-back.git Fix PageData getImageURLList function. WIP #2738 @0.5 --- diff --git a/src/app/Magic/PageData.php b/src/app/Magic/PageData.php index dc8a229..e6fc52d 100644 --- a/src/app/Magic/PageData.php +++ b/src/app/Magic/PageData.php @@ -296,9 +296,10 @@ class PageData implements \ArrayAccess if (!$url) { continue; } - return $res; + + $res[] = $url; } - return $default; + return empty($res) ? $default : $res; } }