From 58928788835f38c680be09a8d88e54852d9c4410 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 5 May 2005 06:05:21 +0000 Subject: [PATCH 1/1] Bugfix. --- src/admin.creditos.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/admin.creditos.php b/src/admin.creditos.php index 6b7fb75..f405eeb 100644 --- a/src/admin.creditos.php +++ b/src/admin.creditos.php @@ -28,10 +28,9 @@ if (isset($_POST['admin_cred']) and isset($_POST['admin_cred_user']) { if (check_numero($_POST['admin_cred']) and check_asociado($_POST['admin_cred_user']) - and check_password($_SESSION['user']->getId(), + and check_password($u = new Usuario($_POST['admin_cred_user']), $_POST['admin_cred_pass'])) { - $u = new Usuario($_POST['admin_cred_user']); $u->addCreditos($_POST['admin_cred']); ok('Se agregaron '.$_POST['admin_cred'].' créditos al usuario ' .$u->getNombre().' '.$u->getApellido()); -- 2.43.0