summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/func.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/addressbook/func.inc')
-rw-r--r--program/steps/addressbook/func.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index 4c930c80b..a895b617f 100644
--- a/program/steps/addressbook/func.inc
+++ b/program/steps/addressbook/func.inc
@@ -88,6 +88,12 @@ if (!$RCMAIL->action && !$OUTPUT->ajax_call) {
$CONTACTS = rcmail_contact_source($source, true);
}
+// remove undo information...
+if ($undo = $_SESSION['contact_undo']) {
+ // ...after 30 seconds
+ if ($undo['ts'] < time() - 30)
+ $RCMAIL->session->remove('contact_undo');
+}
// instantiate a contacts object according to the given source
function rcmail_contact_source($source=null, $init_env=false)