diff --git a/application/models/Item.php b/application/models/Item.php index eca147fa5..b23c4b3ed 100644 --- a/application/models/Item.php +++ b/application/models/Item.php @@ -4,10 +4,11 @@ class Item extends CI_Model /* Determines if a given item_id is an item */ - public function exists($item_id) + public function exists($item_id, $deleted = FALSE) { $this->db->from('items'); $this->db->where('item_id', $item_id); + $this->db->where('deleted', $deleted); return ($this->db->get()->num_rows() == 1); }