summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e58bd84)
raw | patch | inline | side by side (parent: e58bd84)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Dec 2008 10:01:51 +0000 (10:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 Dec 2008 10:01:51 +0000 (10:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13091 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/generic/main.inc | patch | blob | history |
diff --git a/gosa-core/plugins/personal/generic/main.inc b/gosa-core/plugins/personal/generic/main.inc
index 0ab96b0debdec1d25068019169992f21b7f8eb0a..63c770065806401900167470aaeeb36db9b3bab1 100644 (file)
/* Reset requested? */
if (isset($_POST['edit_cancel']) || isset($_POST['password_cancel']) ||
(isset($_GET['reset']) && $_GET['reset'] == 1)){
- del_lock ($ui->dn);
+
+ /* Only remove lock if object was opened
+ */
+ if(session::is_set('user') && session::is_set('edit')){
+ del_lock ($ui->dn);
+ }
session::un_set ('edit');
session::un_set ('user');
}