Commit 85a09c39 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1797821: check if $ltigradeform variable exists before using it

behatnotneeded

Change-Id: Ifc22a1264e0bd7b65bf4f6ba636a31aebac76d00
parent 33f5ef39
......@@ -146,7 +146,7 @@ if ($USER->is_logged_in() && $submittedgroup && group_user_can_assess_submitted_
$releasecollection = !empty($collection) && $collection->get('submittedgroup') == $submittedgroup->id && empty($ltigradeform);
if ($releasecollection) {
if ($ltigradeform && $ctime = $collection->get('submittedtime')) {
if (isset($ltigradeform) && $ltigradeform && $ctime = $collection->get('submittedtime')) {
preg_match("/^.*?\"(.*?)\" - \"(.*?)\"/", $submittedgroup->name, $matches);
$lticoursename = hsc($matches[1]);
$ltiassignmentname = hsc($matches[2]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment