Only show the large image if there's one there
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 26 Apr 2016 20:57:10 +0000 (16:57 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 26 Apr 2016 20:57:10 +0000 (16:57 -0400)
This should help with removing console errors.

views/admin/events/editStatus.html

index b5e19ce..3ce154e 100644 (file)
     {/if}
                     <tr><td colspan="2"><b>New image:</b> <input type="file" name="image_new"></td></tr>
                 </table>
-                <div id="glm-galleryImageLarger_image" class="glm-imageDialog"><img src="{$glmPluginMediaUrl}/images/large/{$event.fieldData.image}"></div>
+                <div id="glm-galleryImageLarger_image" class="glm-imageDialog">
+                    {if $event.fieldData.image}
+                    <img src="{$glmPluginMediaUrl}/images/large/{$event.fieldData.image}">
+                    {/if}
+                </div>
                 {if $event.fieldFail.image}<p>{$event.fieldFail.image}</p>{/if}
             </td>
         </tr>