Fix exists by doing string comparison using like clause (#666)

This commit is contained in:
jekkos committed 2016-08-01 13:58:07 +02:00
1 parent 76630365e7
commit 9fa2676352
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ class Item extends CI_Model
public function exists($item_id, $ignore_deleted = FALSE, $deleted = FALSE)
{
$this->db->from('items');
$this->db->where('item_id', $item_id);
$this->db->like('item_id', $item_id);
if($ignore_deleted == FALSE)
{
$this->db->where('deleted', $deleted);