Hello, I have a script that shows dynamic images. When there is no image - $data[‘thumbnailUrl’], broken image box is displayed.
In order to fix that I put this code
[php]<?php if(is_file($data['thumbnailUrl'])){ ?>
<img src="noimage.jpg" width="168" height="128" alt="" />
<?php } ?>[/php]
However now all images show noimage.jpg, instead of dynamic images wherever possible and static if no dynamic. What is wrong in my code? thanks!