Merge pull request #2049 from RuleDomain/fix-count-function-error

Fix Count Function Error
This commit is contained in:
Steve Ireland
2018-07-14 12:32:47 -04:00
committed by GitHub
8 changed files with 10 additions and 10 deletions

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}