bug 1391: corrected value check
authorINOPIAE <inopiae@cacert.org>
Fri, 31 Jul 2015 07:12:31 +0000 (09:12 +0200)
committerINOPIAE <inopiae@cacert.org>
Fri, 31 Jul 2015 07:12:31 +0000 (09:12 +0200)
manager/application/models/User.php

index 24b27ed..0cb345e 100644 (file)
@@ -126,7 +126,7 @@ class Default_Model_User {
         $row = $this->db->query($query, $query_params)->fetch();
         if ($row['total'] === null) $row['total'] = 0;
 
-        $this->points += ($row['total'] > 25) ? 50 : $row['total'];
+        $this->points += ($row['total'] > 25) ? 50 : $row['total'] * 2;
 
     }