See ChangeLog

Monotone-Parent: ede90c4ec21ca642e49b4287679877bd02717ed6
Monotone-Revision: ae2c5342363a3fa87101fa6840e1c1e1f7a819c0

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-06-01T21:10:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle committed 2011-06-01 21:10:25 +00:00
1 parent 624172fe92
commit 53a01edee4
25 files changed
+521 -102

No files matched your search

+5 -2
View File
@@ -1,6 +1,6 @@
/* NSArray+Utilities.m - this file is part of SOGo
*
* Copyright (C) 2006-2009 Inverse inc.
* Copyright (C) 2006-2011 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
@@ -129,7 +129,10 @@
flattenedArray = [NSMutableArray array];
objects = [self objectEnumerator];
while ((currentObject = [objects nextObject]))
[flattenedArray addObjectsFromArray: currentObject];
if ([currentObject isKindOfClass: [NSArray class]])
[flattenedArray addObjectsFromArray: [(NSArray *)currentObject flattenedArray]];
else
[flattenedArray addObject: currentObject];
return flattenedArray;
}