Commit 81cfdf7f authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4655 The edit anyway button does not work in my account menu

parent 1c0a0b3f
......@@ -778,8 +778,8 @@ class simplePlugin extends plugin
$lock_msg = "";
if ($edit_mode) {
/* Remove locks created by this plugin */
if ($remove_lock || isset($_POST['edit_cancel'])) {
if (session::is_set($classname) && session::is_set('edit')) {
if ($remove_lock || (isset($_POST['edit_cancel']) && session::is_set('edit'))) {
if (session::is_set($classname)) {
del_lock($entry_dn);
}
}
......@@ -792,8 +792,8 @@ class simplePlugin extends plugin
} else {
/* Reset requested? */
if ($edit_mode && isset($_POST['edit_cancel'])) {
session::un_set('edit');
session::un_set($classname);
session::un_set('edit');
}
/* Create account object on demand */
......
Supports Markdown
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