I’m using the Image Sizer plugin to display an index of my entries, and all works great when all the images are there. However, when an entry does not have a image, I get the following error:
Notice: Undefined index: extension in .../plugins/pi.imgsizer.php on line 128
Is there a way to not have this error show up when there’s no image? I would like just nothing to show up. Here’s the code I’m using:
{exp:imgsizer:size src="/images/uploads/event_images{exp:extract_url_plus show="i;lename.x;tension"}{event_image} width="170" alt="{title}" parse="inward"}
I’ve tried putting in a conditional like this, but this doesn’t work either.
{if event_image != ""}
{exp:imgsizer:size src="/images/uploads/event_images{exp:extract_url_plus show="i;lename.x;tension"}{event_image} width="170" alt="{title}" parse="inward"}
{/if}
Also, strangely, the error only shows up in Firefox (Mac). Safari and Camino doesn’t show the error.