X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/dff05914ca6f622974ed9fcbd7a6c1b0052de438..HEAD:/src/admin.admin.php?ds=inline diff --git a/src/admin.admin.php b/src/admin.admin.php index 5a91822..e88966d 100644 --- a/src/admin.admin.php +++ b/src/admin.admin.php @@ -19,9 +19,10 @@ require_once 'lib/admin.util.php'; if (isset($_POST['admin_ceder']) and isset($_POST['admin_ceder_pass'])) { if ($err = ret_check_asociado($_POST['admin_ceder']) - or $err = ret_check_password($u = new Usuario($_POST['admin_ceder']), + or $err = ret_check_password($_SESSION['user'], $_POST['admin_ceder_pass']) - or $err = $_SESSION['user']->cederAdmin($u)) + or $err = $_SESSION['user']->cederAdmin( + $u = new Usuario($_POST['admin_ceder']))) { marco_cabecera('Ceder Administración', true); error($err);