don't try to show non existing images in index matrix
authorAndreas Unterkircher <unki@netshadow.at>
Wed, 6 Jun 2007 20:06:11 +0000 (20:06 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Wed, 6 Jun 2007 20:06:11 +0000 (20:06 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@27 fa6a889d-dae6-447d-9e79-4ba9a3039384

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>