]> git.decadent.org.uk Git - memories.git/blobdiff - templates/tag/list
Arrayize tags with only one photo
[memories.git] / templates / tag / list
index 1a9706f84146b8c94c8b62209379e1837403b166..fea4e0d1d4a90b63d228571eb19c55ac8d70f990 100644 (file)
@@ -10,7 +10,7 @@
         <table><tr> <td width="100%" class="taglistheader">
         <a href="[%base%]/tag/view/[%tag.name |html%]">[% tag %]</a>
         </td></tr>
-        [% SET photos = tag.photos %]
+        [% IF tag.photos.isa("Memories::Photo"); SET photos = [ tag.photos ]; ELSE; SET photos = tag.photos; END %]
         [% IF photos.last %]
         <tr><td>
         <a href="[%base%]/tag/view/[%tag.name |html%]">