bug 1391: corrected value check

This commit is contained in:
INOPIAE 2015-07-31 09:12:31 +02:00
parent bbfbb59454
commit f97cb26f07

View file

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