From 481de5d6541be48376b14830ef4a20306336b465 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Fri, 30 Dec 2011 13:38:17 +0000 Subject: [PATCH] Fix for bug #1502 Monotone-Parent: 0b1c93d1d141650c6567513a3f7a175ca4d27623 Monotone-Revision: 5e690b49423932996ff78f8ea2c1881306f09fa3 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2011-12-30T13:38:17 --- SoObjects/SOGo/SQLSource.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SQLSource.m b/SoObjects/SOGo/SQLSource.m index 66d17fc41..84777c8ab 100644 --- a/SoObjects/SOGo/SQLSource.m +++ b/SoObjects/SOGo/SQLSource.m @@ -487,7 +487,8 @@ int i; for (i = 0; i < [_mailFields count]; i++) - if ((s = [response objectForKey: [_mailFields objectAtIndex: i]])) + if ((s = [response objectForKey: [_mailFields objectAtIndex: i]]) && + [[s stringByTrimmingSpaces] length] > 0) [emails addObject: s]; }