Skip to content

Commit

Permalink
Fix for sitesettings in new OffbeatWP solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRAoW committed Jan 23, 2019
1 parent 4c7152e commit b3ba028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SiteSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function addPage($class)
if (method_exists($pageConfig, 'form')) {
$form = $pageConfig->form();

if (is_array($form)) {
if ($form instanceof \OffbeatWP\Form\Form) {
$fieldsMapper = new FieldsMapper($form);
$mappedFields = $fieldsMapper->map();

Expand Down

0 comments on commit b3ba028

Please sign in to comment.