user fix
This commit is contained in:
		@@ -7,12 +7,12 @@ class User_model extends CI_Model {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function get_user_by_email($email) {
 | 
			
		||||
        $query = $this->db->get_where('users', ['email' => $email]);
 | 
			
		||||
        $query = $this->db->get_where('user', ['email' => $email]);
 | 
			
		||||
        return $query->row_array();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function create_user($data) {
 | 
			
		||||
        return $this->db->insert('users', $data);
 | 
			
		||||
        return $this->db->insert('user', $data);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user