]> git.llucax.com Git - z.facultad/75.43/tp1.git/commitdiff
Bugfix.
authorLeandro Lucarella <llucax@gmail.com>
Thu, 5 May 2005 06:05:21 +0000 (06:05 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 5 May 2005 06:05:21 +0000 (06:05 +0000)
src/admin.creditos.php

index 6b7fb75f0c5e9d1a980a89db6c17a1d80b6a3134..f405eebb491699cbd6383b6473fd930332617a77 100644 (file)
@@ -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());