only save LastSignatureIDUsed when different from the last one

This commit is contained in:
Klaus Leithoff 2014-05-02 10:39:22 +00:00
parent 0fcea2103a
commit 9ee9aad19c

View File

@ -309,7 +309,7 @@ class mail_compose
$sendOK=false;
$message = $this->errorInfo;
}
if (!empty($_content['signatureid']))
if (!empty($_content['signatureid']) && $_content['signatureid'] != $sigPref[$this->mail_bo->profileID])
{
$sigPref[$this->mail_bo->profileID]=$_content['signatureid'];
$GLOBALS['egw']->preferences->add('mail','LastSignatureIDUsed',$sigPref,'user');