mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-11-04 02:07:05 +01:00 
			
		
		
		
	Change dictionary even if current_dictionary is selected
This commit is contained in:
		
							parent
							
								
									d8111fbe1d
								
							
						
					
					
						commit
						bc672a564a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -59,7 +59,7 @@ VALUES ($new_id, ?, ?, ?, ?)";
 | 
				
			||||||
  public function changeCurrent ($user, $dictionary) {
 | 
					  public function changeCurrent ($user, $dictionary) {
 | 
				
			||||||
    $update_query = 'UPDATE users SET current_dictionary=? WHERE id=?';
 | 
					    $update_query = 'UPDATE users SET current_dictionary=? WHERE id=?';
 | 
				
			||||||
    $update = $this->db->query($update_query, array($dictionary, $user));
 | 
					    $update = $this->db->query($update_query, array($dictionary, $user));
 | 
				
			||||||
    if ($update->rowCount() > 0) {
 | 
					    if (trim($this->db->last_error_info[2]) == '') {
 | 
				
			||||||
      return $dictionary;
 | 
					      return $dictionary;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue