diff --git a/app/Controller/Component/UpdateComponent.php b/app/Controller/Component/UpdateComponent.php index bf660536..4deed0ce 100755 --- a/app/Controller/Component/UpdateComponent.php +++ b/app/Controller/Component/UpdateComponent.php @@ -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; }