Browse Source

fix php warning in php 5.6

MOODLE_33_STABLE
Dan Marsden 8 years ago
parent
commit
cad81f2b3c
  1. 2
      renderer.php

2
renderer.php

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

Loading…
Cancel
Save