Skip to content

Commit

Permalink
improv: fix last version string
Browse files Browse the repository at this point in the history
  • Loading branch information
Eywek committed Mar 3, 2019
1 parent 1ea7b07 commit ae75657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controller/Component/UpdateComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private function check() {
$remoteVersion = $this->getLatestRelease();
if ($remoteVersion) file_put_contents($this->updateCacheFile, $remoteVersion);
}
$this->lastVersion = isset($remoteVersion) ? $remoteVersion : file_get_contents($this->updateCacheFile);
$this->lastVersion = trim(isset($remoteVersion) ? $remoteVersion : file_get_contents($this->updateCacheFile));
if (!$this->lastVersion) $this->lastVersion = $this->cmsVersion;
}

Expand Down

0 comments on commit ae75657

Please sign in to comment.