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

Commit e51926ec authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Allow 0 rollout percentage that disables a build

parent 2269a689
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -558,7 +558,7 @@
        public function checkRollout()
        {
            $rolloutpercentage = isset($this->confProp['rollout']['percentage']) ? (int) $this->confProp['rollout']['percentage'] : 100;
            if ($rolloutpercentage <= 0 || $rolloutpercentage > 100) {
            if ($rolloutpercentage < 0 || $rolloutpercentage > 100) {
                return TRUE;
            }
            $rand_number = rand(1, 100);