-
Sub-task
-
Resolution: Fixed
-
Minor
-
None
-
2.2.3
-
None
-
MOODLE_22_STABLE
For example: process_course_section_tag() has code like:
unset($course);
|
// And then later...
|
if (preg_match('{<sourcedid>.*?<source>(.+?)</source>.*?</sourcedid>}is', $tagcontents, $matches)) {
|
$course->sourcedidsource = trim($matches[1]);
|
}
|
$course should be initialized with $course = new stdClass;
Opening this file with an IDE like Netbeans or PhpStorm will help to identify all of these. There are around 11 give or take a few.
The ones like the above aren't too bad, but inside email_luminis_error() there are several that are undefined that might break emailing. These are undefined:
- $user
- $from
- $usetrueaddress
- $replytoname