mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Fixed count() for postgresql, I hope
This commit is contained in:
parent
6fbf81abed
commit
fe494abdc1
@ -498,16 +498,17 @@
|
||||
$sql .= " UPPER($f) LIKE UPPER('%$query%') OR ";
|
||||
$sqlcount .= $sql;
|
||||
}
|
||||
$sql = substr($sql,0,-3) . ') ' . $fand . $filtermethod . $ordermethod;
|
||||
$sqlcount = $sql;
|
||||
unset($f); unset($x);
|
||||
$_tmp = $sql;
|
||||
$sql = substr($_tmp,0,-3) . ') ' . $fand . $filtermethod . $ordermethod;
|
||||
$sqlcount = substr($_tmp,0,-3) . ') ' . $fand . $filtermethod;
|
||||
unset($_tmp); unset($f); unset($x);
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = "SELECT id,lid,tid,owner,access,cat_id $t_fields FROM $this->std_table " . $fwhere
|
||||
. $filtermethod . ' ' . $ordermethod;
|
||||
$sqlcount = "SELECT COUNT(id) FROM $this->std_table " . $fwhere
|
||||
. $filtermethod . ' ' . $ordermethod;
|
||||
. $filtermethod;
|
||||
}
|
||||
if($DEBUG)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user