diff options
Diffstat (limited to 'lib/private/App/AppStore/Version/VersionParser.php')
-rw-r--r-- | lib/private/App/AppStore/Version/VersionParser.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/App/AppStore/Version/VersionParser.php b/lib/private/App/AppStore/Version/VersionParser.php index 3924b8aea16..cdbb62ffbc5 100644 --- a/lib/private/App/AppStore/Version/VersionParser.php +++ b/lib/private/App/AppStore/Version/VersionParser.php @@ -63,11 +63,10 @@ class VersionParser { if(!$this->isValidVersionString($firstVersionNumber)) { break; } - if(substr($firstVersion, 0, 1) === '>') { + if(strpos($firstVersion, '>') === 0) { return new Version($firstVersionNumber, ''); - } else { - return new Version('', $firstVersionNumber); } + return new Version('', $firstVersionNumber); case 2: if(!$this->isValidVersionString($firstVersionNumber) || !$this->isValidVersionString($secondVersionNumber)) { break; |