Skip to content

Commit

Permalink
Bug: Inactive settings check was returning false if there was a numbe…
Browse files Browse the repository at this point in the history
…r of DB settings equal of the seeder
  • Loading branch information
xaviqv committed Aug 31, 2018
1 parent ce276c5 commit 5d58c7b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Controllers/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,14 @@ public function inactiveSettings()
}

// Application active migrations
$default_Settings = $seeder->getDefaults();
$seeder_settings = $seeder->getDefaults();

if (count($installed_settings) == count($default_Settings)) {
$inactive_settings = array_diff_key($seeder_settings, $installed_settings);

if (!$inactive_settings) {
return false;
}

$inactive_settings = array_diff_key($default_Settings, $installed_settings);

return $inactive_settings;
}

Expand Down

0 comments on commit 5d58c7b

Please sign in to comment.