mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
There is no update available if the app didnt have a version (aka was not installed)
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
a9f8ee4e9d
commit
483ad01a09
1 changed files with 1 additions and 1 deletions
|
|
@ -389,7 +389,7 @@ class Installer {
|
|||
if($app['id'] === $appId) {
|
||||
$currentVersion = OC_App::getAppVersion($appId);
|
||||
$newestVersion = $app['releases'][0]['version'];
|
||||
if (version_compare($newestVersion, $currentVersion, '>')) {
|
||||
if ($currentVersion !== '0' && version_compare($newestVersion, $currentVersion, '>')) {
|
||||
return $newestVersion;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue