From 140856afcbd08004e18a997167a6e644bd08f56c Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 28 Apr 2017 14:04:28 +1200 Subject: [PATCH] attempt to fix php 5.6 issue in tests. --- renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer.php b/renderer.php index f0549a7..75415af 100644 --- a/renderer.php +++ b/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) && !empty(($prefdata->errors[$st->id]))) { + if (isset($prefdata->errors[$st->id]) && !empty(($prefdata->errors[$st->id]))) { if (empty($prefdata->errors[$st->id]['acronym'])) { $emptyacronym = $this->construct_notice(get_string('emptyacronym', 'mod_attendance'), 'notifyproblem'); }