Browse Source

attempt to fix php 5.6 issue in tests.

MOODLE_32_STABLE
Dan Marsden 8 years ago
parent
commit
f1311f3cf2
  1. 2
      renderer.php

2
renderer.php

@ -1446,7 +1446,7 @@ class mod_attendance_renderer extends plugin_renderer_base {
foreach ($prefdata->statuses as $st) { foreach ($prefdata->statuses as $st) {
$emptyacronym = ''; $emptyacronym = '';
$emptydescription = ''; $emptydescription = '';
if (!empty($prefdata->errors) && !empty(($prefdata->errors[$st->id]))) { if (isset($prefdata->errors[$st->id]) && !empty(($prefdata->errors[$st->id]))) {
if (empty($prefdata->errors[$st->id]['acronym'])) { if (empty($prefdata->errors[$st->id]['acronym'])) {
$emptyacronym = $this->construct_notice(get_string('emptyacronym', 'mod_attendance'), 'notifyproblem'); $emptyacronym = $this->construct_notice(get_string('emptyacronym', 'mod_attendance'), 'notifyproblem');
} }

Loading…
Cancel
Save