Commit 3b300e16 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) fix coding errors in user password manager

parent 30e81e8a
...@@ -36,7 +36,6 @@ if (session_status() == PHP_SESSION_NONE) { ...@@ -36,7 +36,6 @@ if (session_status() == PHP_SESSION_NONE) {
session_start(); session_start();
} }
$username = $_SESSION['Username']; $username = $_SESSION['Username'];
session_write_close();
if (isset($_POST['save'])) { if (isset($_POST['save'])) {
unset($input_errors); unset($input_errors);
...@@ -62,6 +61,8 @@ if (isset($_POST['save'])) { ...@@ -62,6 +61,8 @@ if (isset($_POST['save'])) {
} }
} }
session_write_close();
/* determine if user is not local to system */ /* determine if user is not local to system */
$islocal = false; $islocal = false;
foreach ($config['system']['user'] as $user) { foreach ($config['system']['user'] as $user) {
...@@ -85,10 +86,10 @@ include("head.inc"); ...@@ -85,10 +86,10 @@ include("head.inc");
<div class="row"> <div class="row">
<? <?
if ($input_errors) { if (isset($input_errors)) {
print_input_errors($input_errors); print_input_errors($input_errors);
} }
if ($savemsg) { if (isset($savemsg)) {
print_info_box($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