From 7df4db0b4fc4dc9e964fd99e32d440f4ea881d94 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Thu, 25 Jul 2013 15:57:45 -0400
Subject: [PATCH] Better check for priority header
---
program/steps/mail/compose.inc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 7cb26c1..73a7f34 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -1426,7 +1426,7 @@
if (isset($_POST['_priority']))
$sel = $_POST['_priority'];
- else if ($MESSAGE->headers && intval($MESSAGE->headers->priority) != 3)
+ else if (isset($MESSAGE->headers->priority) && intval($MESSAGE->headers->priority) != 3)
$sel = $MESSAGE->headers->priority;
else
$sel = 0;
--
Gitblit v1.9.1