From 469ca1ff8454d9e7e6fef9b878d64bf4fd97b207 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 8 Nov 2012 16:02:32 +0000 Subject: [PATCH] check that cachedComposeId is set before trying to compare --- felamimail/inc/class.uicompose.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/felamimail/inc/class.uicompose.inc.php b/felamimail/inc/class.uicompose.inc.php index de7ee53883..dc0ef984ce 100644 --- a/felamimail/inc/class.uicompose.inc.php +++ b/felamimail/inc/class.uicompose.inc.php @@ -183,8 +183,8 @@ } else { $cachedComposeID = egw_cache::getCache(egw_cache::INSTANCE,'email','composeIdCache'.trim($GLOBALS['egw_info']['user']['account_id']),$callback=null,$callback_params=array(),$expiration=5); egw_cache::setCache(egw_cache::INSTANCE,'email','composeIdCache'.trim($GLOBALS['egw_info']['user']['account_id']),$this->composeID,$expiration=5); - //error_log(__METHOD__.__LINE__.' '.$formData['subject'].' '.$cachedComposeID.'<->'.$this->composeID); - if ($cachedComposeID != $this->composeID) return; + error_log(__METHOD__.__LINE__.' '.$formData['subject'].' '.$cachedComposeID.'<->'.$this->composeID); + if (!empty($cachedComposeID) && $cachedComposeID != $this->composeID) return; if(!$this->bocompose->send($formData)) { // print ""; $this->compose();