Disallow invalid event dates.

this froze the simpleevent class
This commit is contained in:
2018-08-09 22:27:28 +02:00
parent b965da0a6c
commit d92e53f0b7
2 changed files with 8 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ class DBActivity implements Activity {
}
public function getAllEvents() {
$query = 'SELECT * FROM events ORDER BY id ASC';
$query = 'SELECT * FROM events ORDER BY id DESC';
$statement = $this->pdo->prepare($query);
$statement->execute();