summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-03-21 12:53:50 +0000
committeralecpl <alec@alec.pl>2012-03-21 12:53:50 +0000
commit252d27459c05ff7fa38f2ac446eac9845f490c04 (patch)
tree841e1153d97a87c8a9c79829049c334e95753251 /program/steps
parentde4de814b95565782730cd59573e5d32a8019e58 (diff)
- Fix E_STRICT warning (#1488404)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 56abd2456..9475f34c5 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -29,7 +29,6 @@ define('RCUBE_COMPOSE_DRAFT', 0x0108);
define('RCUBE_COMPOSE_EDIT', 0x0109);
$MESSAGE_FORM = null;
-$MESSAGE = null;
$COMPOSE_ID = get_input_value('_id', RCUBE_INPUT_GET);
$COMPOSE = null;
@@ -181,7 +180,7 @@ if (!empty($msg_uid))
$MESSAGE = new rcube_message($msg_uid);
// make sure message is marked as read
- if ($MESSAGE && $MESSAGE->headers && empty($MESSAGE->headers->flags['SEEN']))
+ if ($MESSAGE->headers && empty($MESSAGE->headers->flags['SEEN']))
$RCMAIL->storage->set_flag($msg_uid, 'SEEN');
if (!empty($MESSAGE->headers->charset))
@@ -241,6 +240,9 @@ if (!empty($msg_uid))
$MESSAGE->forward_attachment = true;
}
}
+else {
+ $MESSAGE = new stdClass();
+}
$MESSAGE->compose = array();
@@ -1396,7 +1398,7 @@ function rcmail_receipt_checkbox($attrib)
$attrib['value'] = '1';
$checkbox = new html_checkbox($attrib);
- if ($MESSAGE && in_array($compose_mode, array(RCUBE_COMPOSE_DRAFT, RCUBE_COMPOSE_EDIT)))
+ if (in_array($compose_mode, array(RCUBE_COMPOSE_DRAFT, RCUBE_COMPOSE_EDIT)))
$mdn_default = (bool) $MESSAGE->headers->mdn_to;
else
$mdn_default = $RCMAIL->config->get('mdn_default');