From b85685c752f1dcd632919530c634432d2cdcf2e1 Mon Sep 17 00:00:00 2001 From: vdigital Date: Mon, 27 Aug 2007 19:08:54 +0000 Subject: 0000735: Hits were displayed twice on Most visited (manual merge) git-svn-id: http://piwigo.org/svn/trunk@2081 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/category_default.inc.php') diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 3c1ed5a6c..88e0c7537 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -129,7 +129,9 @@ foreach ($pictures as $row) } case 'most_visited' : { - $name = '('.$row['hit'].') '.$name; + if ( !$user['show_nb_hits']) { + $name = '('.$row['hit'].') '.$name; + } break; } case 'search' : -- cgit v1.2.3