mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 02:27:24 +01:00
Sometimes board_create can fail I guess
This commit is contained in:
parent
0764a8ead8
commit
49938c49c6
@ -48,7 +48,7 @@ foreach($boards as $board) {
|
|||||||
} else {// no one ever logged in, try board creation time
|
} else {// no one ever logged in, try board creation time
|
||||||
$query = query("SELECT UNIX_TIMESTAMP(time) AS time FROM board_create WHERE uri = '$board'");
|
$query = query("SELECT UNIX_TIMESTAMP(time) AS time FROM board_create WHERE uri = '$board'");
|
||||||
$crt = $query->fetchAll(PDO::FETCH_COLUMN);
|
$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;
|
$last_mod_date = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user