bug 1391: corrected value check
This commit is contained in:
parent
bbfbb59454
commit
f97cb26f07
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue