Changed to suggestings (back to original) + fixed typo in scalar type

This commit is contained in:
Roland Häder 2022-06-18 23:30:13 +02:00
parent 6f1d52cf71
commit 39f2d197ea
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
2 changed files with 4 additions and 4 deletions

View file

@ -84,7 +84,7 @@ class OpenWebAuthToken
*/
public static function purge(string $type, string $interval)
{
$condition = ['`type` = ? AND `created` < ?', $type, DateTimeFormat::utcNow() . ' - INTERVAL ' . $interval];
$condition = ["`type` = ? AND `created` < ?", $type, DateTimeFormat::utcNow() . ' - INTERVAL ' . $interval];
DBA::delete('openwebauth-token', $condition);
}