forked from Public/pics
		
	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('
 | 
			
		||||
			UPDATE users
 | 
			
		||||
			SET reset_key = {string:key},
 | 
			
		||||
			SET reset_key = :key,
 | 
			
		||||
				reset_blocked_until = UNIX_TIMESTAMP() + ' . static::DEFAULT_RESET_TIMEOUT . '
 | 
			
		||||
			WHERE id_user = :id',
 | 
			
		||||
			[
 | 
			
		||||
 | 
			
		||||
@ -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)) . '%',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user