From 2d0c2dc902dfa24fce91ae3f9aced7bdcf1c4550 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 10 Feb 2010 11:49:27 -0700 Subject: [PATCH] Fix undefined error warning. --- imp/lib/Compose.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 5749d60e2..93c42e90b 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -322,9 +322,9 @@ class IMP_Compose /* Add the message to the mailbox. */ try { - if ($this->getMetadata('autodraft')) { - $old_uid = $this->getMetadata('draft_uid'); - } + $old_uid = $this->getMetadata('autodraft') + ? $this->getMetadata('draft_uid') + : null; $ids = $GLOBALS['imp_imap']->ob()->append($drafts_mbox, array(array('data' => $data, 'flags' => $append_flags, 'messageid' => $headers->getValue('message-id')))); -- 2.11.0