Skip to content

Commit

Permalink
Merge pull request #948 from Martin-Gleiss/develop
Browse files Browse the repository at this point in the history
Hotfix for update check
  • Loading branch information
wvhn committed Dec 6, 2023
2 parents 79a44f1 + 6134cac commit 443b2a1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions lib/base/check_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,10 @@ function($errno, $errstr, $errfile, $errline)

if($VersionBuffer !== false){
// Filter version info from the array
$VersionOldFormat = substr ($VersionBuffer [2], 27, -4);
$VersionMajor = substr ($VersionBuffer [2], 33, -4);
$VersionMinor = substr ($VersionBuffer [3], 33, -4);
$VersionRevision = substr ($VersionBuffer [4], 36, -4);

if ($VersionBuffer [4]) { // version-info.php contains new version formats
$VersionMajor = substr ($VersionBuffer [3], 33, -4);
$VersionMinor = substr ($VersionBuffer [4], 33, -4);
$VersionRevision = substr ($VersionBuffer [5], 36, -4);
}
else{
$VersionMajor = substr ($VersionOldFormat, 0, 1);
$VersionMinor = substr ($VersionOldFormat, 2);
$VersionRevision = "0";
}
$ret["update"] = (($VersionMajor > config_version_major) or ($VersionMinor > config_version_minor) or ($VersionRevision > config_version_revision) ? true : false);
$extension = "";
if ((isset($data_sv) && !$data_sv->update) && $ret["update"])
Expand Down

0 comments on commit 443b2a1

Please sign in to comment.