diff --git a/htdocs/zapier/class/api_zapier.class.php b/htdocs/zapier/class/api_zapier.class.php index 239ee5227d6..287f1b9e3b7 100644 --- a/htdocs/zapier/class/api_zapier.class.php +++ b/htdocs/zapier/class/api_zapier.class.php @@ -210,7 +210,8 @@ class ZapierApi extends DolibarrApi $sql.= $db->plimit($limit + 1, $offset); } - $result = $db->query($sql); + $result = $db->query($sql); + $i = 0; if ($result) { $num = $db->num_rows($result); while ($i < $num) { @@ -240,9 +241,6 @@ class ZapierApi extends DolibarrApi */ public function post($request_data = null) { - // $debug = '
'.print_r($request_data, true).''; - // $debug .= '
'.print_r(DolibarrApiAccess::$user->rights->zapier, true).''; - // mail('frederic.france@free.fr', 'test hook', $debug); if (! DolibarrApiAccess::$user->rights->zapier->write) { throw new RestException(401); } diff --git a/htdocs/zapier/hook_agenda.php b/htdocs/zapier/hook_agenda.php index 924db3b8632..b536b264952 100644 --- a/htdocs/zapier/hook_agenda.php +++ b/htdocs/zapier/hook_agenda.php @@ -196,7 +196,7 @@ if ($object->id > 0) print ''; $object->info($object->id); - print dol_print_object_info($object, 1); + dol_print_object_info($object, 1); print '';