Update WidgetAreaEditor.php

This commit is contained in:
sinan-evanshunt 2018-09-06 09:43:05 -06:00 committed by GitHub
parent 4dccc49a41
commit ac1c1dabc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,7 @@ class WidgetAreaEditor extends FormField
unset($classes[0]);
}
if( isset($classes) ){
foreach ($classes as $class) {
$available = Config::inst()->get($class, 'only_available_in');
@ -62,6 +63,7 @@ class WidgetAreaEditor extends FormField
}
}
}
}
return $widgets;
}