Skip to content

Commit

Permalink
Merge pull request #8109 from dragomano/fix_search_engines
Browse files Browse the repository at this point in the history
[3.0] Fix an issue with type error on Search Engines area
  • Loading branch information
Sesquipedalian authored Feb 21, 2024
2 parents 145613a + 2c47e74 commit ead27e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Actions/Admin/SearchEngines.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ public function stats(): void
list($min_date, $max_date) = Db::$db->fetch_row($request);
Db::$db->free_result($request);

$min_date = (string) $min_date;
$max_date = (string) $max_date;

$min_year = (int) substr($min_date, 0, 4);
$max_year = (int) substr($max_date, 0, 4);
$min_month = (int) substr($min_date, 5, 2);
Expand Down

0 comments on commit ead27e9

Please sign in to comment.