aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-03-12 02:42:08 +0300
committerValentin Popov <info@valentineus.link>2018-03-12 02:42:08 +0300
commitcce50b316d35fda03a1b7b741a66261abb6c4b86 (patch)
treec2760fce98f8a2a76362211396bed91344bcc90d
parent55b1a6b5a9df9a5d997342c3ac44f4762a0824ec (diff)
downloadlocal_webhooks-cce50b316d35fda03a1b7b741a66261abb6c4b86.tar.xz
local_webhooks-cce50b316d35fda03a1b7b741a66261abb6c4b86.zip
Delete the variable
Signed-off-by: Valentin Popov <info@valentineus.link>
-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());
}