findAddress() can return FALSE as well as zero
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 17 Jun 2013 18:39:19 +0000 (18:39 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 17 Jun 2013 18:39:19 +0000 (18:39 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14373 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 88a8c29f98cd5f3a45015f122624cf6252e0900f..b3511fc6784e7e78050a970ef13a34386a311188 100644 (file)
@@ -893,7 +893,7 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se
             }
 
             $identity_match = $orig_header->findAddress($identities);
             }
 
             $identity_match = $orig_header->findAddress($identities);
-            if ($identity_match) {
+            if ($identity_match !== FALSE) {
                 $identity = $identity_match;
             }
         }
                 $identity = $identity_match;
             }
         }