Commit f694b824 authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

Merge "Prevent "Undefined index" warning (Bug 1514661)"

parents 1767ae17 1dacaab9
......@@ -309,8 +309,7 @@ EOF;
// Update the attached files in block configdata as
// it may change when attached files have been deleted
$attachmentids = isset($artefact) ? $artefact->attachment_id_list() : false;
if ($attachmentids !== false
&& $configdata['artefactids'] != $attachmentids) {
if ($attachmentids !== false && isset($configdata['artefactids']) && $configdata['artefactids'] != $attachmentids) {
$configdata['artefactids'] = $attachmentids;
$instance->set('configdata', $configdata);
$instance->commit();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment