From 61f2646d4ef46469682a1c4715fd22d44c4bd743 Mon Sep 17 00:00:00 2001 From: vdigital Date: Mon, 27 Aug 2007 18:28:42 +0000 Subject: 0000735: Hits were displayed twice on Most visited git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2080 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 3c1ed5a6c..fd6bd9684 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