Update only a specific server, not all at the same time

This commit is contained in:
Karsten Heiken
2011-08-25 21:33:14 +02:00
parent 49587fd7ff
commit ed0b23632e

View File

@@ -72,7 +72,7 @@ class Server extends CI_Model {
* @param type $workload The server's workload.
*/
public function update($server_id, $data) {
return $this->db->update('servers', $data);
return $this->db->where('id', $server_id)->update('servers', $data);
}
/**