diff --git a/bureau/admin/sta2_doedit_raw.php b/bureau/admin/sta2_doedit_raw.php index ad33a402..d09ecf0e 100644 --- a/bureau/admin/sta2_doedit_raw.php +++ b/bureau/admin/sta2_doedit_raw.php @@ -29,7 +29,13 @@ */ require_once("../class/config.php"); -if (!$id) { +$fields = array ( + "id" => array ("post", "integer", ""), + "dir" => array ("post", "string", ""), +); +getFields($fields); + +if (empty($id)) { $error=_("No Statistics selected!"); } else { $r=$sta2->put_stats_details_raw($id,$dir); diff --git a/bureau/admin/sta2_edit_raw.php b/bureau/admin/sta2_edit_raw.php index a8774742..97319624 100644 --- a/bureau/admin/sta2_edit_raw.php +++ b/bureau/admin/sta2_edit_raw.php @@ -31,7 +31,12 @@ require_once("../class/config.php"); include_once("head.php"); -if (!$id) { +$fields = array ( + "id" => array ("get", "integer", ""), +); +getFields($fields); + +if (empty($id)) { $error=_("No Statistics selected!"); } else { $r=$sta2->get_stats_details_raw($id); @@ -45,7 +50,7 @@ if (!$id) {