From 554bb91d13bc526f0a8fb51e5cfeff67f1cca5a7 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 1 Dec 2008 21:59:50 -0700 Subject: [PATCH] Nits. --- imp/compose-mimp.php | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/imp/compose-mimp.php b/imp/compose-mimp.php index 78ae6eb41..5c0c45e8c 100644 --- a/imp/compose-mimp.php +++ b/imp/compose-mimp.php @@ -1,9 +1,6 @@ '', - 'cc' => '', 'in_reply_to' => Util::getFormData('in_reply_to'), - 'references' => Util::getFormData('references'), - 'subject' => '', - 'to' => '', + 'references' => Util::getFormData('references') ); /* Set the current identity. */ $identity = &Identity::singleton(array('imp', 'imp')); if (!$prefs->isLocked('default_identity')) { $identity_id = Util::getFormData('identity'); - if ($identity_id !== null) { + if (!is_null($identity_id)) { $identity->setDefault($identity_id); } } @@ -73,8 +64,7 @@ $compose_disable = !empty($conf['hooks']['disable_compose']) && NLS::setTimeZone(); /* Initialize the IMP_Compose:: object. */ -$oldCacheID = Util::getFormData('composeCache'); -$imp_compose = &IMP_Compose::singleton($oldCacheID); +$imp_compose = &IMP_Compose::singleton(Util::getFormData('composeCache')); /* Run through the action handlers. */ $actionID = Util::getFormData('a'); @@ -109,7 +99,7 @@ case _("Expand Names"): $header['bcc'] = $imp_ui->expandAddresses(Util::getFormData('bcc'), $imp_compose); } } - if ($action !== null) { + if (!is_null($action)) { $actionID = $action; } break; -- 2.11.0