forked from extern/egroupware
Fix for count() using postgresql with query
This commit is contained in:
parent
fe494abdc1
commit
b2d20be441
@ -496,12 +496,11 @@
|
||||
while(list($f,$x) = each($this->stock_contact_fields))
|
||||
{
|
||||
$sql .= " UPPER($f) LIKE UPPER('%$query%') OR ";
|
||||
$sqlcount .= $sql;
|
||||
$sqlcount .= " UPPER($f) LIKE UPPER('%$query%') OR ";
|
||||
}
|
||||
$_tmp = $sql;
|
||||
$sql = substr($_tmp,0,-3) . ') ' . $fand . $filtermethod . $ordermethod;
|
||||
$sqlcount = substr($_tmp,0,-3) . ') ' . $fand . $filtermethod;
|
||||
unset($_tmp); unset($f); unset($x);
|
||||
$sql = substr($sql,0,-3) . ') ' . $fand . $filtermethod . $ordermethod;
|
||||
$sqlcount = substr($sqlcount,0,-3) . ') ' . $fand . $filtermethod;
|
||||
unset($f); unset($x);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user