From e7b1dcd80319c6680db4dbe0b29f20611282a2ab Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Tue, 21 Aug 2012 12:59:57 +0000 Subject: [PATCH] Register globals --- bureau/admin/hta_dodeluser.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bureau/admin/hta_dodeluser.php b/bureau/admin/hta_dodeluser.php index 5ebd0784..4a9013fd 100644 --- a/bureau/admin/hta_dodeluser.php +++ b/bureau/admin/hta_dodeluser.php @@ -29,15 +29,15 @@ */ require_once("../class/config.php"); -if (!is_array($d)) { - $d[]=$d; -} +$fields = array ( + "d" => array ("post", "array", ""), + "dir" => array ("post", "string", ""), +); +getFields($fields); reset($d); if (!$hta->del_user($d,$dir)) { - $error=$err->errstr(); - - + $error=$err->errstr(); } include("hta_edit.php");