From 29f938acba2b11d3b4a29abbe52c032495a005b9 Mon Sep 17 00:00:00 2001 From: Julien Samson Date: Wed, 16 Jan 2019 14:25:15 +0100 Subject: [PATCH] display login page if there is no images at the tag (URL) --- include/section_init.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/section_init.inc.php b/include/section_init.inc.php index b7bda42b1..24d9cbbcf 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -338,6 +338,15 @@ else $items = get_image_ids_for_tags($page['tag_ids']); + if (count($items) == 0) + { + $logger->info( + 'attempt to see the name of the tag #'.implode(', #', $page['tag_ids']) + .' from the address : '.$_SERVER['REMOTE_ADDR'] + ); + access_denied(); + } + $page = array_merge( $page, array(