From 49938c49c6446c8e17deaaaa2898722dffb5e7bd Mon Sep 17 00:00:00 2001 From: 8chan Date: Tue, 23 Sep 2014 15:31:11 +0000 Subject: [PATCH] Sometimes board_create can fail I guess --- expire.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }