Skip to content

Commit

Permalink
Merge pull request #130 from pravindahal/master
Browse files Browse the repository at this point in the history
Fixed check to find that configured version exists
  • Loading branch information
omniphx authored Feb 6, 2017
2 parents f2b7852 + ba9c3c1 commit 17c35be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Omniphx/Forrest/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,12 +788,12 @@ private function storeConfiguredVersion($versions)
{
$configVersion = $this->settings['version'];
if (empty($configVersion)) return;

foreach($versions as $version)
$this->determineIfConfigVersionExists($version['version'], $configVersion);
$this->determineIfConfiguredVersionExists($version, $configVersion);
}

private function determineIfConfiguredVersionExists($existingVersion, $configVersion)
private function determineIfConfiguredVersionExists($version, $configVersion)
{
if ($version['version'] !== $configVersion) return;
$this->storage->put('version', $version);
Expand Down

0 comments on commit 17c35be

Please sign in to comment.