Skip to content
Snippets Groups Projects

3455431: Assuring attachments array is not null

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -200,7 +200,9 @@ class BlockService implements BlockServiceInterface {
}
// Get only unique libraries.
$data['attachments']['library'] = array_unique($data['attachments']['library']);
if (isset($data['attachments']['library'])) {
$data['attachments']['library'] = array_unique($data['attachments']['library']);
}
return $data;
}
Loading