Errors in lib.php

Errors in lib.php

by Richard Webb -
Number of replies: 1
For a couple of months now I have been getting the following error in the CRON messages:

PHP Notice: Undefined variable: title in /var/www/html/UCmoodle/mod/scheduler/lib.php on line 169
PHP Notice: Undefined variable: recicpient in /var/www/html/UCmoodle/mod/scheduler/lib.php on line 169

The line in question reads

if(email_to_user($recicpient, $teacher, $title,$message)){

The spelling of recipient is obviously a problem here, but I'm not sure what to make of the error related to the variable title. It is indeed not defined in the file lib.php. I am guessing that the first line of the message (defined as shown below) could be used as the title if there is no convenient title already set up.
 = get_string, .fullname.;
Average of ratings: -