From 9fa26763528647450fa2d6273df51370b45ce3b4 Mon Sep 17 00:00:00 2001 From: jekkos Date: Mon, 1 Aug 2016 13:58:07 +0200 Subject: [PATCH] Fix exists by doing string comparison using like clause (#666) --- application/models/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Item.php b/application/models/Item.php index 6e413a059..a71d5b605 100644 --- a/application/models/Item.php +++ b/application/models/Item.php @@ -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);