display login page if there is no images at the tag (URL)

This commit is contained in:
Julien Samson
2019-01-16 14:25:15 +01:00
committed by Pierrick Le Gall
parent 35e7b79d7f
commit 29f938acba
+9
View File
@@ -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(