Commit 230564b3 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix coding errors in user password manager

parent d4d68e0c
......@@ -36,7 +36,6 @@ if (session_status() == PHP_SESSION_NONE) {
session_start();
}
$username = $_SESSION['Username'];
session_write_close();
if (isset($_POST['save'])) {
unset($input_errors);
......@@ -62,6 +61,8 @@ if (isset($_POST['save'])) {
}
}
session_write_close();
/* determine if user is not local to system */
$islocal = false;
foreach ($config['system']['user'] as $user) {
......@@ -85,10 +86,10 @@ include("head.inc");
<div class="row">
<?
if ($input_errors) {
if (isset($input_errors)) {
print_input_errors($input_errors);
}
if ($savemsg) {
if (isset($savemsg)) {
print_info_box($savemsg);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment