Skip to content

Commit

Permalink
fixes #2, do not reset images.lastmodified
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Mar 8, 2018
1 parent 8497ccb commit b63bbdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.inc.php
Expand Up @@ -79,6 +79,7 @@ function dlcount_init()
$query = '
UPDATE '.IMAGES_TABLE.'
SET download_counter = download_counter + 1
, lastmodified = lastmodified
WHERE id = '.$_GET['id'].'
;';
pwg_query($query);
Expand Down Expand Up @@ -127,6 +128,7 @@ function dlcount_batchdownload($data, $images)
$query = '
UPDATE '.IMAGES_TABLE.'
SET download_counter = download_counter + 1
, lastmodified = lastmodified
WHERE id IN ('.implode(',', $images).')
;';
pwg_query($query);
Expand Down

0 comments on commit b63bbdf

Please sign in to comment.