mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-10 03:00:09 -04:00
Merge pull request #2049 from RuleDomain/fix-count-function-error
Fix Count Function Error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user