Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
484cf11c07 |
@@ -235,6 +235,9 @@ function update_points($con, $s_id) {
|
||||
$factor = $results[0]['erg']/ 15.0;
|
||||
foreach($results as $row) {
|
||||
$points = round($row['erg']/$factor);
|
||||
if ($points == 0 && $row['erg'] != 0) {
|
||||
$points = 1;
|
||||
}
|
||||
change_points($con, $row['m_id'], $s_id, $points);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user