aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableRelations.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m
index d83d7ec5..5c51fcbc 100644
--- a/Source/SPTableRelations.m
+++ b/Source/SPTableRelations.m
@@ -397,10 +397,10 @@
NSMutableArray *validColumns = [NSMutableArray array];
// Only add columns of the same data type
- for (int i = 0; i < [columns count]; i++)
+ for (NSDictionary *column in columns)
{
- if ([[columnInfo objectForKey:@"type"] isEqualToString:[[columns objectAtIndex:i] objectForKey:@"type"]]) {
- [validColumns addObject:[[columns objectAtIndex:i] objectForKey:@"name"]];
+ if ([[columnInfo objectForKey:@"type"] isEqualToString:[column objectForKey:@"type"]]) {
+ [validColumns addObject:[column objectForKey:@"name"]];
}
}