summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-18 16:14:17 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-02-18 16:14:17 -0800
commit45447dc330ae258caf674d1895fe2db6d38cff02 (patch)
treeb362482fcb583e5a12d83295800fe58f160ca162 /MobileCydia.mm
parent810c9763690280cd2ce6affac10684be4d18cb0b (diff)
Fix filtering the (No Section) section.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 31b1ba2..4a9ba45 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1108,7 +1108,7 @@ NSString *GetLastUpdate() {
}
bool isSectionVisible(NSString *section) {
- NSDictionary *metadata([Sections_ objectForKey:section]);
+ NSDictionary *metadata([Sections_ objectForKey:(section ?: @"")]);
NSNumber *hidden(metadata == nil ? nil : [metadata objectForKey:@"Hidden"]);
return hidden == nil || ![hidden boolValue];
}
@@ -2660,7 +2660,7 @@ struct PackageNameOrdering :
_end
_profile(Package$visible$isSectionVisible)
- if (section != nil && !isSectionVisible(section))
+ if (!isSectionVisible(section))
return false;
_end