diff --git a/application/models/Customer.php b/application/models/Customer.php index 615ea2bc2..b6ea04564 100644 --- a/application/models/Customer.php +++ b/application/models/Customer.php @@ -349,7 +349,7 @@ class Customer extends Person } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Employee.php b/application/models/Employee.php index 0387d951f..f5678d666 100644 --- a/application/models/Employee.php +++ b/application/models/Employee.php @@ -246,7 +246,7 @@ class Employee extends Person } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Giftcard.php b/application/models/Giftcard.php index 898bfedd6..281ed5219 100644 --- a/application/models/Giftcard.php +++ b/application/models/Giftcard.php @@ -190,7 +190,7 @@ class Giftcard extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Item.php b/application/models/Item.php index fd94e7cf7..1d5f91315 100644 --- a/application/models/Item.php +++ b/application/models/Item.php @@ -658,7 +658,7 @@ class Item extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } @@ -769,7 +769,7 @@ class Item extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } @@ -874,7 +874,7 @@ class Item extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Item_kit.php b/application/models/Item_kit.php index 6de74b7c4..ea62998eb 100644 --- a/application/models/Item_kit.php +++ b/application/models/Item_kit.php @@ -191,7 +191,7 @@ class Item_kit extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Person.php b/application/models/Person.php index f5cee9260..cf5c773ae 100644 --- a/application/models/Person.php +++ b/application/models/Person.php @@ -158,7 +158,7 @@ class Person extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Supplier.php b/application/models/Supplier.php index ea08fa887..5d9b728fe 100644 --- a/application/models/Supplier.php +++ b/application/models/Supplier.php @@ -217,7 +217,7 @@ class Supplier extends Person } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0, $limit); } diff --git a/application/models/Tax.php b/application/models/Tax.php index ab6b7bb3b..ca08f8666 100644 --- a/application/models/Tax.php +++ b/application/models/Tax.php @@ -370,7 +370,7 @@ class Tax extends CI_Model } //only return $limit suggestions - if(count($suggestions > $limit)) + if(count($suggestions) > $limit) { $suggestions = array_slice($suggestions, 0,$limit); }