From: Michael M Slusarz Date: Wed, 10 Feb 2010 18:49:27 +0000 (-0700) Subject: Fix undefined error warning. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2d0c2dc902dfa24fce91ae3f9aced7bdcf1c4550;p=horde.git Fix undefined error warning. --- 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'))));