Fix two more stray queries
This commit is contained in:
parent
92b2cfa391
commit
913fb974c7
@ -115,7 +115,7 @@ class Authentication
|
|||||||
{
|
{
|
||||||
return Registry::get('db')->query('
|
return Registry::get('db')->query('
|
||||||
UPDATE users
|
UPDATE users
|
||||||
SET reset_key = {string:key},
|
SET reset_key = :key,
|
||||||
reset_blocked_until = UNIX_TIMESTAMP() + ' . static::DEFAULT_RESET_TIMEOUT . '
|
reset_blocked_until = UNIX_TIMESTAMP() + ' . static::DEFAULT_RESET_TIMEOUT . '
|
||||||
WHERE id_user = :id',
|
WHERE id_user = :id',
|
||||||
[
|
[
|
||||||
|
@ -375,8 +375,8 @@ class Tag
|
|||||||
return Registry::get('db')->queryPairs('
|
return Registry::get('db')->queryPairs('
|
||||||
SELECT id_tag, tag, slug
|
SELECT id_tag, tag, slug
|
||||||
FROM tags
|
FROM tags
|
||||||
WHERE LOWER(tag) LIKE {string:tokens} AND
|
WHERE LOWER(tag) LIKE :tokens AND
|
||||||
kind = {string:person}
|
kind = :person
|
||||||
ORDER BY tag ASC',
|
ORDER BY tag ASC',
|
||||||
[
|
[
|
||||||
'tokens' => '%' . strtolower(implode('%', $tokens)) . '%',
|
'tokens' => '%' . strtolower(implode('%', $tokens)) . '%',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user