fixing adm_doedit missing getfields call
This commit is contained in:
parent
3ad80498d6
commit
09458ca510
|
@ -38,6 +38,23 @@ if (!$admin->enabled) {
|
||||||
|
|
||||||
$subadmin=variable_get("subadmin_restriction");
|
$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)) {
|
if ($subadmin==0 && !$admin->checkcreator($uid)) {
|
||||||
__("This page is restricted to authorized staff");
|
__("This page is restricted to authorized staff");
|
||||||
exit();
|
exit();
|
||||||
|
|
|
@ -58,7 +58,7 @@ if (!$r=$admin->get($uid)) {
|
||||||
<hr id="topbar"/>
|
<hr id="topbar"/>
|
||||||
<br />
|
<br />
|
||||||
<?php
|
<?php
|
||||||
if ($error) {
|
if (isset($error) && $error) {
|
||||||
echo "<p class=\"error\">$error</p>";
|
echo "<p class=\"error\">$error</p>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue