aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2007-08-27 19:08:54 +0000
committervdigital <vdigital@piwigo.org>2007-08-27 19:08:54 +0000
commitb85685c752f1dcd632919530c634432d2cdcf2e1 (patch)
tree5269f02e4a060290e1192008f26a92ee0ab9c104 /include
parent5c13d6a8f1416abb5712bc77aadb959dc1c9d333 (diff)
0000735: Hits were displayed twice on Most visited (manual merge)
git-svn-id: http://piwigo.org/svn/trunk@2081 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/category_default.inc.php4
1 files changed, 3 insertions, 1 deletions
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' :