From 6bd3ce77316d41073795b9fb30f696c81fe57dc4 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Thu, 19 Jan 2023 13:46:39 +0100 Subject: [PATCH] Add notice on empty image gallery --- www/galleri/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/galleri/index.php b/www/galleri/index.php index b8d39ca..cba76e1 100644 --- a/www/galleri/index.php +++ b/www/galleri/index.php @@ -111,6 +111,11 @@ $imageTemplate = ' ]; echo strtr($imageTemplate, $vars); } + + if (count($images) == 0) { + echo "

Det er dessverre ingen bilder å vise.

"; + } + ?>