summaryrefslogtreecommitdiff
path: root/lib.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-02-20 13:38:36 +0300
committerValentin Popov <info@valentineus.link>2018-02-20 13:38:36 +0300
commitf10786bfb0dff66cfeb8d9f98d042d23bc314369 (patch)
tree5e166cd7cf22e9e35a97d5f509cc5190489df1f1 /lib.php
parent899b129d23a7535922ae96264c297970db6ff9f2 (diff)
downloadlocal_webhooks-f10786bfb0dff66cfeb8d9f98d042d23bc314369.tar.xz
local_webhooks-f10786bfb0dff66cfeb8d9f98d042d23bc314369.zip
Update function 'local_webhooks_create_record'
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib.php b/lib.php
index 9c82e2c..331ffbd 100644
--- a/lib.php
+++ b/lib.php
@@ -123,8 +123,8 @@ function local_webhooks_get_list_events() {
/**
* Create an entry in the database.
*
- * @param object $record
- * @return number
+ * @param object $record
+ * @return boolean
*/
function local_webhooks_create_record($record) {
global $DB;
@@ -141,7 +141,7 @@ function local_webhooks_create_record($record) {
/* Event notification */
local_webhooks_events::service_added($result);
- return $result;
+ return boolval($result);
}
/**