summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-08-25 08:58:01 +0200
committerAleksander Machniak <alec@alec.pl>2013-08-25 08:58:01 +0200
commit1305079d75413743c3954ae0c3a1757b38676782 (patch)
treeef6d980e14a6865399a661df010c6cf404145c14 /plugins
parent98184938bf6dca1b03da6b46086b9b7ea42699fc (diff)
Fix error on new mail (message's headers object doesn't exist)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/identity_select/identity_select.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/identity_select/identity_select.php b/plugins/identity_select/identity_select.php
index 0048c4d43..7973b5dad 100644
--- a/plugins/identity_select/identity_select.php
+++ b/plugins/identity_select/identity_select.php
@@ -46,7 +46,7 @@ class identity_select extends rcube_plugin
*/
function select($p)
{
- if ($p['selected'] !== null) {
+ if ($p['selected'] !== null || !is_object($p['message']->headers)) {
return $p;
}