From: Leandro Lucarella Date: Thu, 5 May 2005 06:05:21 +0000 (+0000) Subject: Bugfix. X-Git-Tag: svn_import~62 X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/commitdiff_plain/58928788835f38c680be09a8d88e54852d9c4410?hp=4004ec643157ebf5e77f4ef192acfdf5acacb541 Bugfix. --- 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());