mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Quick fix to broken search.
This commit is contained in:
parent
aba0107f88
commit
57e4a4440f
@ -141,7 +141,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function count_entries() {
|
function count_entries($query,$filter,$filtermethod) {
|
||||||
global $phpgw,$phpgw_info;
|
global $phpgw,$phpgw_info;
|
||||||
if ($phpgw_info["apps"]["timetrack"]["enabled"]) {
|
if ($phpgw_info["apps"]["timetrack"]["enabled"]) {
|
||||||
$phpgw->db->query("SELECT count(*) "
|
$phpgw->db->query("SELECT count(*) "
|
||||||
@ -199,7 +199,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($query) {
|
if ($query) {
|
||||||
$this->searchreturn=$this->count_entries();
|
$this->searchreturn=$this->count_entries($query,$filter,$filtermethod);
|
||||||
} else {
|
} else {
|
||||||
$this->searchreturn="";
|
$this->searchreturn="";
|
||||||
$phpgw->db->query("select count(*) from addressbook where $filtermethod",__LINE__,__FILE__);
|
$phpgw->db->query("select count(*) from addressbook where $filtermethod",__LINE__,__FILE__);
|
||||||
|
@ -141,7 +141,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function count_entries() {
|
function count_entries($query,$filter,$filtermethod) {
|
||||||
global $phpgw,$phpgw_info;
|
global $phpgw,$phpgw_info;
|
||||||
if ($phpgw_info["apps"]["timetrack"]["enabled"]) {
|
if ($phpgw_info["apps"]["timetrack"]["enabled"]) {
|
||||||
$phpgw->db->query("SELECT count(*) "
|
$phpgw->db->query("SELECT count(*) "
|
||||||
@ -199,7 +199,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($query) {
|
if ($query) {
|
||||||
$this->searchreturn=$this->count_entries();
|
$this->searchreturn=$this->count_entries($query,$filter,$filtermethod);
|
||||||
} else {
|
} else {
|
||||||
$this->searchreturn="";
|
$this->searchreturn="";
|
||||||
$phpgw->db->query("select count(*) from addressbook where $filtermethod",__LINE__,__FILE__);
|
$phpgw->db->query("select count(*) from addressbook where $filtermethod",__LINE__,__FILE__);
|
||||||
|
Loading…
Reference in New Issue
Block a user