mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Merge pull request #176 from evanshunt/sinan-evanshunt-patch-1
Update WidgetAreaEditor.php
This commit is contained in:
commit
d7dbf85426
@ -42,7 +42,7 @@ class WidgetAreaEditor extends FormField
|
||||
$widgets= new ArrayList();
|
||||
|
||||
foreach ($this->widgetClasses as $widgetClass) {
|
||||
$classes = ClassInfo::subclassesFor($widgetClass);
|
||||
$classes = ClassInfo::subclassesFor($widgetClass) ?: array();
|
||||
|
||||
if (isset($classes['Widget'])) {
|
||||
unset($classes['Widget']);
|
||||
|
Loading…
Reference in New Issue
Block a user