Fix erroneous query when getting a server by its id

This commit is contained in:
Karsten Heiken
2011-09-07 14:15:17 +02:00
parent 52ee271f1a
commit 4905182a4b
2 changed files with 5 additions and 1 deletions

View File

@@ -88,4 +88,8 @@ class Server extends CI_Model {
public function getBySecret($secret) {
return $this->db->get_where('servers', array('secret' => $secret))->row();
}
public function getById($server_id) {
return $this->db->get_where('servers', array('id' => $server_id))->row();
}
}