Skip to content

Commit

Permalink
More code standards fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Aug 16, 2023
1 parent 05b4230 commit 246c10c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion classes/complaints_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public function __construct($uniqueid, \moodle_url $url, $perpage = 100) {
}

/**
* Bouncecount column. Will wrap the values in a <span class='alert alert-dangerous'> if the value is over the computed threshold.
* Bouncecount column. Will wrap the values in a <span class='alert alert-dangerous'>
* if the value is over the computed threshold.
*
* @param mixed $data
* @return string
Expand Down
2 changes: 2 additions & 0 deletions client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
2 changes: 1 addition & 1 deletion reset_bounces.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 246c10c

Please sign in to comment.