summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-06-06 20:06:11 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-06-06 20:06:11 +0000
commit57358ea6629f4fafdf383314c64efcea55c56492 (patch)
tree127374148b4a4c4c174a17fe13fdf2700b5af8f9
parentbbf672d2d4744cfa8c0b652cea2492b35acd7dc1 (diff)
don't try to show non existing images in index matrix
git-svn-id: file:///var/lib/svn/phpfspot/trunk@27 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r--templates/photo_index.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/photo_index.tpl b/templates/photo_index.tpl
index 7f3af46..97c9fb8 100644
--- a/templates/photo_index.tpl
+++ b/templates/photo_index.tpl
@@ -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>