🌍
English
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
--- 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);
Offline