Announcement

  •  » Extensions
  •  » Prune History manual prune date range query bug

#1 2021-01-24 17:57:50

erAck
Only trying to help
2015-09-06
2026

Prune History manual prune date range query bug

Hi,

I just discovered a bug in [extension by Eric] Prune History that for manual prune with a date range the query is broken and results in an error. It's a one character fix, pull request is https://github.com/Eric-Piwigo/Prune_History/pull/1

Which basically is the diff

Code:

--- plugins/Prune_History/include/functions.inc.php
+++ plugins/Prune_History/include/functions.inc.php
@@ -182,7 +182,7 @@ function history_prune($startdate,$stopdate)
 DELETE
 FROM '.HISTORY_TABLE.' 
 WHERE date < "'.$stopdate.'" 
-AND date > "'.$startdate.';';
+AND date > "'.$startdate.'"';
 
     $r = pwg_query($query);

Running Piwigo at https://erack.net/gallery/

Offline

 
  •  » Extensions
  •  » Prune History manual prune date range query bug

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact