index c393fdb6a2be21fcf1b9c3f325ba0488f17f5f14..df0e7495e491f2ffd9d2955d395ef768b5372d48 100644 (file)
/* Reset requested? */
if (isset($_POST['edit_cancel']) ||
(isset($_GET['reset']) && $_GET['reset'] == 1)){
- del_lock ($ui->dn);
+
+ /* Only remove lock if object was opened
+ */
+ if(session::is_set('mailAccount') && session::is_set('edit')){
+ del_lock ($ui->dn);
+ }
session::un_set ('edit');
session::un_set ('mailAccount');
}
}
/* Page header*/
- $display= print_header(get_template_path('images/email.png'), _("User mail settings"), $info).$display;
+ $display= print_header(get_template_path('plugins/mail/images/plugin.png'), _("User mail settings"), $info).$display;
}