You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here lately, I have started to occasionally see this warning: Warning: Creating default object from empty value in /var/www/html/moodledev/mod/tracker/renderer.php on line 486
To me, it appears that the variable name in that line of code is misspelled. The line number varies depending on the tracker version, but it is third line from the bottom of this bit of code:
if (!empty($history)) {
foreach ($history as $owner) {
$histtpl = new StdClass;
$user = $DB->get_record('user', array('id' => $owner->userid));
$bywhom = $DB->get_record('user', array('id' => $owner->bywhomid));
$histtpl->date = userdate($owner->timeassigned);
$histtpl->user = $this->user($user);
$histtpl->username = fullname($bywhom);
$teplate->history[] = $histtpl; <- The error appears to be here and should be $template.
}
}
The text was updated successfully, but these errors were encountered:
Here lately, I have started to occasionally see this warning:
Warning: Creating default object from empty value in /var/www/html/moodledev/mod/tracker/renderer.php on line 486
To me, it appears that the variable name in that line of code is misspelled. The line number varies depending on the tracker version, but it is third line from the bottom of this bit of code:
if (!empty($history)) {
foreach ($history as $owner) {
$histtpl = new StdClass;
$user = $DB->get_record('user', array('id' => $owner->userid));
$bywhom = $DB->get_record('user', array('id' => $owner->bywhomid));
The text was updated successfully, but these errors were encountered: