aboutsummaryrefslogtreecommitdiff
path: root/classes/webhooks_table.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/webhooks_table.php')
-rw-r--r--classes/webhooks_table.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/classes/webhooks_table.php b/classes/webhooks_table.php
index 3e97a17..b38d0bd 100644
--- a/classes/webhooks_table.php
+++ b/classes/webhooks_table.php
@@ -67,9 +67,7 @@ class local_webhooks_table extends table_sql {
* @param boolean $useinitialsbar
*/
public function query_db($pagesize, $useinitialsbar = false) {
- $listrecords = local_webhooks_get_list_records();
- $total = count($listrecords);
-
+ $total = local_webhooks_get_total_count();
$this->pagesize($pagesize, $total);
$this->rawdata = local_webhooks_get_list_records($this->get_page_start(), $this->get_page_size());
}