don't try to show non existing images in index matrix
[phpfspot.git] / templates / photo_index.tpl
index 7f3af463864b9a14723a83dcae17469af3464d44..97c9fb84bb93717030919c245ea72dc343a19b5a 100644 (file)
@@ -9,9 +9,11 @@
  <tr>
  {section name="col" loop=$columns step=1}
   <td>
+   {if $images[row][col] }
    <a href="javascript:showImage({$images[row][col]});">
     <img src="phpfspot_img.php?idx={$images[row][col]}&amp;width={$width}" />
    </a>
+   {/if}
   </td>
  {/section}
  </tr>