diff --git a/expire.php b/expire.php index 8ed2f9a7..ef5c90bd 100644 --- a/expire.php +++ b/expire.php @@ -48,7 +48,7 @@ foreach($boards as $board) { } else {// no one ever logged in, try board creation time $query = query("SELECT UNIX_TIMESTAMP(time) AS time FROM board_create WHERE uri = '$board'"); $crt = $query->fetchAll(PDO::FETCH_COLUMN); - $last_activity_date->setTimestamp($crt[0]); + if (!empty($crt)) $last_activity_date->setTimestamp($crt[0]); $last_mod_date = false; } }