better check if upper limit of version is set

This commit is contained in:
Uwe Steinmann 2024-01-16 17:58:53 +01:00
parent 11ea03560e
commit e3f563c3e7

View File

@ -433,7 +433,7 @@ class SeedDMS_Extension_Mgr {
$fullfill = false;
foreach($dval as $ddval) {
$tmp = explode('-', $ddval, 2);
if(self::cmpVersion($tmp[0], $version->version()) > 0 || ($tmp[1] && self::cmpVersion($tmp[1], $version->version()) < 0))
if(self::cmpVersion($tmp[0], $version->version()) > 0 || (!empty($tmp[1]) && self::cmpVersion($tmp[1], $version->version()) < 0))
; // No within version range
else
$fullfill = true;