From: Michael M Slusarz Date: Tue, 2 Dec 2008 04:59:50 +0000 (-0700) Subject: Nits. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=554bb91d13bc526f0a8fb51e5cfeff67f1cca5a7;p=horde.git Nits. --- 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;