Skip to content

Commit

Permalink
Suggested change from PHP Best Practices
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Sep 22, 2021
1 parent 02ff3fc commit 82840b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function display(\PDO $pdo_db, string $lang, Registry $tkireg, Timer $tki
// Last run is the (int) count of the numbers of players currently
// logged in via SQL select or false if DB is not active
$last_run = $scheduler_gateway->selectSchedulerLastRun();
if (!is_null($last_run))
if ($last_run !== null)
{
$seconds_left = ($tkireg->sched_ticks * 60) - (time() - $last_run);
$show_update_ticker = true;
Expand Down

0 comments on commit 82840b3

Please sign in to comment.