vendor: Respect state in objectGetEntries[Count]
This commit is contained in:
committed by
Chris Morgan
parent
35df7b4f30
commit
f78a7c931b
@@ -258,9 +258,9 @@ class Vendor {
|
|||||||
if(!$iRows)
|
if(!$iRows)
|
||||||
$iRows = Vendor::objectGetEntriesCount($sState);
|
$iRows = Vendor::objectGetEntriesCount($sState);
|
||||||
|
|
||||||
$hResult = query_parameters("SELECT * FROM vendor
|
$hResult = query_parameters("SELECT * FROM vendor WHERE state = '?'
|
||||||
ORDER BY $sOrderBy $sOrder LIMIT ?,?",
|
ORDER BY $sOrderBy $sOrder LIMIT ?,?",
|
||||||
$iStart, $iRows);
|
$sState, $iStart, $iRows);
|
||||||
|
|
||||||
if(!$hResult)
|
if(!$hResult)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -407,7 +407,8 @@ class Vendor {
|
|||||||
if($sState == 'rejected')
|
if($sState == 'rejected')
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
$hResult = query_parameters("SELECT COUNT(vendorId) as count FROM vendor");
|
$hResult = query_parameters("SELECT COUNT(vendorId) as count FROM vendor WHERE state = '?'",
|
||||||
|
$sState);
|
||||||
|
|
||||||
if(!$hResult)
|
if(!$hResult)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user