Commit 04f5d72a authored by Franco Fichtner's avatar Franco Fichtner

www: fix syntax errors

parent 4b63c352
......@@ -52,7 +52,7 @@ $a_phase2 = &$config['ipsec']['phase2'];
$status = ipsec_smp_dump_status();
if (is_array($status['query']) && $status['query']['ikesalist'] && $status['query']['ikesalist']['ikesa'])) {
if (is_array($status['query']) && $status['query']['ikesalist'] && $status['query']['ikesalist']['ikesa']) {
foreach ($a_phase2 as $ph2ent) {
ipsec_lookup_phase1($ph2ent,$ph1ent);
$tunnel = array();
......
......@@ -57,7 +57,7 @@ if (isset($_POST['save'])) {
if (!session_id())
session_start();
// all values are okay --> saving changes
$config['system']['user'][$userindex[$_SESSION['Username']]]['password'] = crypt($_POST['passwordfld1'], '$6$'));
$config['system']['user'][$userindex[$_SESSION['Username']]]['password'] = crypt($_POST['passwordfld1'], '$6$');
local_user_set($config['system']['user'][$userindex[$_SESSION['Username']]]);
session_commit();
......
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