Fix bug when updating the lastaccess time of a project

This commit is contained in:
Karsten Heiken
2011-05-26 19:11:04 +02:00
parent 8549a29edf
commit 58317382f4

View File

@@ -92,7 +92,7 @@ class Project extends CI_Model {
*/
public function get($project_id) {
$result = $this->db->get_where('projects', array('id' => $project_id))->row_array();
$this->db->where('project', $project_id)->update('projects', array(
$this->db->where('id', $project_id)->update('projects', array(
'lastaccess' => mysql_now(),
));