Skip to content

Commit

Permalink
Fixed issue with MySQL 8
Browse files Browse the repository at this point in the history
See issue #70
  • Loading branch information
jbtronics committed Dec 18, 2022
1 parent c2cd165 commit 60776e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,11 +669,11 @@ public function getEntries($newest_first = true, $min_level = self::LEVEL_DEBUG,
}

//Filter for dates
if ($max_date != "") {
if ($max_date != "" && ($max_date != "-1")) {
$query .= " AND (datetime <= ?)";
$data[] = $max_date;
}
if($min_date != "") {
if($min_date != "" && ($min_date != "-1")) {
$query .= " AND (datetime >= ?)";
$data[] = $min_date;
}
Expand Down

0 comments on commit 60776e5

Please sign in to comment.