Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ee294c3 authored by Akhil's avatar Akhil 🙂
Browse files

Updated checkVersion to not return builds with same timestamp

parent c0198a26
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -183,8 +183,8 @@
                return true;
            } // Valid build if no current build specified
            
            if ($currentBuild->getTimestamp() > $this->getTimestamp()) {
                return false; // Invalid build if timestamp older
            if ($currentBuild->getTimestamp() >= $this->getTimestamp()) {
                return false; // Invalid build if timestamp older or equal(same build invalid)
            }

            return(version_compare($currentBuild->getVersion(), $this->getVersion(),  "<="));