Fix two more stray queries

This commit is contained in:
Aaron van Geffen 2025-09-18 11:10:04 +02:00
parent 92b2cfa391
commit 913fb974c7
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ class Authentication
{
return Registry::get('db')->query('
UPDATE users
SET reset_key = {string:key},
SET reset_key = :key,
reset_blocked_until = UNIX_TIMESTAMP() + ' . static::DEFAULT_RESET_TIMEOUT . '
WHERE id_user = :id',
[

View File

@ -375,8 +375,8 @@ class Tag
return Registry::get('db')->queryPairs('
SELECT id_tag, tag, slug
FROM tags
WHERE LOWER(tag) LIKE {string:tokens} AND
kind = {string:person}
WHERE LOWER(tag) LIKE :tokens AND
kind = :person
ORDER BY tag ASC',
[
'tokens' => '%' . strtolower(implode('%', $tokens)) . '%',