aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--picture.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index cea4adeae..abca13f48 100644
--- a/picture.php
+++ b/picture.php
@@ -436,10 +436,11 @@ else
// don't increment if adding a comment
if (trigger_change('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) )
{
+ // avoiding auto update of "lastmodified" field
$query = '
UPDATE
'.IMAGES_TABLE.'
- SET hit = hit+1
+ SET hit = hit+1, lastmodified = lastmodified
WHERE id = '.$page['image_id'].'
;';
pwg_query($query);