diff --git a/webapp/models/RewardsCec.php b/webapp/models/RewardsCec.php index dc8c8412..7779c264 100644 --- a/webapp/models/RewardsCec.php +++ b/webapp/models/RewardsCec.php @@ -66,13 +66,16 @@ class RewardsCec extends BaseModel if (!$row['reward1']){ // $pendingNum -= $pendingNum*0.25; $pendingNum += 1; - }elseif (!$row['reward2']){ + } + if (!$row['reward2']){ // $pendingNum -= $pendingNum*0.5; $pendingNum += 1; - }elseif (!$row['reward3']){ + } + if (!$row['reward3']){ // $pendingNum -= $pendingNum*0.75; $pendingNum += 1; - }elseif (!$row['reward4']){ + } + if (!$row['reward4']){ // $pendingNum = 0; $pendingNum += 1; }