From de1336906224f891a18b73e5ea9e2859f2987a9f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 1 Apr 2010 13:59:04 +0000 Subject: [PATCH] Removed page result limitations git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17470 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofax/gofax/faxreports/class_faxreport.inc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc index d3a28adfc..2772a9b86 100644 --- a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc +++ b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc @@ -258,23 +258,11 @@ class faxreport extends plugin "status,sender_id,receiver_id,pages FROM faxlog ". "WHERE {$userfilter} AND queuing_time <= {$end} AND ". "queuing_time >= {$start} ORDER BY ".$this->fields[$this->sort]. - " {$desc } LIMIT {$this->start},{$this->range};" ; + " {$desc } "; - $query_count = "SELECT count(uid) as `count` FROM faxlog ". - "WHERE {$userfilter} AND queuing_time <= {$end} AND ". - "queuing_time >= {$start} ;"; - // Get result count $cfg= $this->config->data['SERVERS']['FAX']; $link = @mysql_pconnect($cfg['SERVER'], $cfg['LOGIN'], $cfg['PASSWORD']); - @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query"); - $result =@mysql_query($query_count); - if ($result === false){ - msg_dialog::display(_("Error"), sprintf(_("Cannot query %s database!"), "GOfax"), ERROR_DIALOG); - return($smarty->fetch(get_template_path('contents.tpl', TRUE))); - } - $tmp = mysql_fetch_assoc($result); - $entry_count = $tmp['count']; // Get the results @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query"); @@ -366,6 +354,7 @@ class faxreport extends plugin } mysql_close($link); + $entry_count = count($report_list); /* Generate output */ $mod= 0; -- 2.30.2