mirror of
https://github.com/friendica/friendica
synced 2025-04-24 02:30:13 +00:00
Changed to suggestings (back to original) + fixed typo in scalar type
This commit is contained in:
parent
6f1d52cf71
commit
39f2d197ea
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue