fixing adm_doedit missing getfields call

This commit is contained in:
Benjamin Sonntag 2012-08-21 08:34:49 +00:00
parent 3ad80498d6
commit 09458ca510
2 changed files with 20 additions and 3 deletions

View File

@ -38,6 +38,23 @@ if (!$admin->enabled) {
$subadmin=variable_get("subadmin_restriction");
$fields = array (
"uid" => array ("request", "integer", 0),
"enabled" => array ("request", "boolean", true),
"pass" => array ("request", "string", ""),
"passconf" => array ("request", "string", ""),
"canpass" => array ("request", "boolean", true),
"notes" => array ("request", "string", ""),
"nom" => array ("request", "string", ""),
"prenom" => array ("request", "string", ""),
"nmail" => array ("request", "string", ""),
"type" => array ("request", "string", ""),
"duration" => array ("request", "integer", 0),
"reset_quotas" => array ("request", "boolean", false),
);
getFields($fields);
if ($subadmin==0 && !$admin->checkcreator($uid)) {
__("This page is restricted to authorized staff");
exit();

View File

@ -58,9 +58,9 @@ if (!$r=$admin->get($uid)) {
<hr id="topbar"/>
<br />
<?php
if ($error) {
echo "<p class=\"error\">$error</p>";
}
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
}
?>
<form method="post" action="adm_doedit.php" name="main" id="main">
<table class="tedit">