diff --git a/classes/complaints_list.php b/classes/complaints_list.php index a4b24e9..9a739e5 100644 --- a/classes/complaints_list.php +++ b/classes/complaints_list.php @@ -93,7 +93,8 @@ public function __construct($uniqueid, \moodle_url $url, $perpage = 100) { } /** - * Bouncecount column. Will wrap the values in a if the value is over the computed threshold. + * Bouncecount column. Will wrap the values in a + * if the value is over the computed threshold. * * @param mixed $data * @return string diff --git a/client.php b/client.php index f2a2b5c..11af7c8 100644 --- a/client.php +++ b/client.php @@ -30,6 +30,8 @@ use tool_emailutils\sns_client; use tool_emailutils\event\notification_received; +define('NO_MOODLE_COOKIES', true); + require_once(__DIR__ . '/../../../config.php'); if (!get_config('tool_emailutils', 'enabled')) { diff --git a/reset_bounces.php b/reset_bounces.php index 7df3ac2..29a3ee5 100644 --- a/reset_bounces.php +++ b/reset_bounces.php @@ -40,7 +40,7 @@ echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('resetbounces', 'tool_emailutils')); -if ($confirm and confirm_sesskey()) { +if ($confirm && confirm_sesskey()) { list($in, $params) = $DB->get_in_or_equal($SESSION->bulk_users); $rs = $DB->get_recordset_select('user', "id $in", $params, '', 'id, ' . get_all_user_name_fields(true)); foreach ($rs as $user) {