From: Leandro Lucarella Date: Sun, 8 May 2005 05:35:29 +0000 (+0000) Subject: Pseudo bugfix, se agrega el ranking para sumar créditos. X-Git-Tag: svn_import~32 X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/commitdiff_plain/ec14e221c612f4f8a710f17d1591416b16204eeb Pseudo bugfix, se agrega el ranking para sumar créditos. --- diff --git a/src/lib/file.creditos.php b/src/lib/file.creditos.php index 4a9e923..d4d4cc1 100644 --- a/src/lib/file.creditos.php +++ b/src/lib/file.creditos.php @@ -57,12 +57,12 @@ function file_creditos_preguntar($user) * * @return Array con los nuevos valores de créditos. */ -function file_creditos_evaluar($user, $es_bonus = false, $bonus_cant = 5) +function file_creditos_evaluar($user, $rank, $es_bonus = false, $bonus_cant = 5) { if (!($row = file_creditos_get($user))) return false; list($fecha, $creditos, $bonus, $dias) = $row; $bonus2 = $bonus; - $creditos2 = $creditos; + $creditos2 = $creditos + $rank; if ($es_bonus) $bonus2++; if ($bonus2 >= $bonus_cant) {