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.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/webhooks_table.php b/classes/webhooks_table.php
index b38d0bd..53f714c 100644
--- a/classes/webhooks_table.php
+++ b/classes/webhooks_table.php
@@ -67,8 +67,7 @@ class local_webhooks_table extends table_sql {
* @param boolean $useinitialsbar
*/
public function query_db($pagesize, $useinitialsbar = false) {
- $total = local_webhooks_get_total_count();
- $this->pagesize($pagesize, $total);
+ $this->pagesize($pagesize, local_webhooks_get_total_count());
$this->rawdata = local_webhooks_get_list_records($this->get_page_start(), $this->get_page_size());
}