hmt %!s(int64=6) %!d(string=hai) anos
pai
achega
836d8f5eaf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Fotoliste.html

+ 2 - 2
Fotoliste.html

@@ -6,9 +6,9 @@
         <h5>{slice[0].Klasse}</h5>
         Stand: {datum(new Date())}
         <div class="grid">
-          {#each slice as s,i}
+          {#each slice as s}
             <div>
-              <img src="data:image/jpg;base64,{buffer(s.schuelerfoto.Foto)}" alt="Foto" style="width: 120px">
+              <img src="data:image/jpg;base64,{s && buffer(s.schuelerfoto.Foto)}" alt="Foto" style="width: 120px">
               <br>
               {s.Name}, {s.Vorname}
             </div>