Skip to content

Commit 8401478

Browse files
committed
codechecker issues
1 parent 9354399 commit 8401478

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

classes/local/manager/trigger_manager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
use tool_lifecycle\local\entity\trigger_subplugin;
2929
use tool_lifecycle\settings_type;
3030

31+
defined('MOODLE_INTERNAL') || die();
32+
3133
require_once(__DIR__ . '/../../../locallib.php');
3234

3335
/**

trigger/semindependent/lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
use tool_lifecycle\settings_type;
3131

3232
defined('MOODLE_INTERNAL') || die();
33+
3334
require_once(__DIR__ . '/../lib.php');
3435
require_once(__DIR__ . '/../../lib.php');
3536
require_once(__DIR__ . '/../../locallib.php');
@@ -66,7 +67,7 @@ public function get_course_recordset_where($triggerid) {
6667
if ($nosemester) {
6768
require_once($CFG->dirroot.'/customfield/field/semester/locallib.php');
6869
$termindependentintvalue = CUSTOMFIELD_SEMESTER_INTERNAL_TERMINDEPENDENT;
69-
$where = " NOT EXISTS (SELECT 1 FROM {customfield_data} AS cfd WHERE cfd.fieldid = :customfield AND
70+
$where = " NOT EXISTS (SELECT 1 FROM {customfield_data} cfd WHERE cfd.fieldid = :customfield AND
7071
cfd.instanceid = c.id AND cfd.intvalue <> :termindependentintvalue) ";
7172
if ($exclude) {
7273
$where = " NOT ($where) ";

workflowoverview.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@
408408
"wf" => $workflowid,
409409
"trigger" => $triggerid,
410410
"showtablesql" => "1",
411-
"showdetails" => "1"
411+
"showdetails" => "1",
412412
]),
413413
"XXYYZZ&nbsp;&nbsp;&nbsp;", ["class" => "text-muted fs-6 text-decoration-none"]));
414414
}

0 commit comments

Comments
 (0)