From ec14e221c612f4f8a710f17d1591416b16204eeb Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 8 May 2005 05:35:29 +0000 Subject: [PATCH] =?utf8?q?Pseudo=20bugfix,=20se=20agrega=20el=20ranking=20?= =?utf8?q?para=20sumar=20cr=C3=A9ditos.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/lib/file.creditos.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.43.0