Fix a non working query that prevented events to show up right after adding them

Ref: 535c1a4cb5

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-02-25 18:31:49 +01:00
parent 085cbb9fab
commit 3e8b51214f
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -1632,7 +1632,7 @@ class DatabaseInterface implements DbalInterface
} else {
$query = 'SHOW EVENTS FROM ' . Util::backquote($db);
if (! empty($name)) {
$query .= " AND `Name` = '"
$query .= " WHERE `Name` = '"
. $this->escapeString($name) . "'";
}
}