diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-18 16:14:17 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-18 16:14:17 -0800 |
commit | 45447dc330ae258caf674d1895fe2db6d38cff02 (patch) | |
tree | b362482fcb583e5a12d83295800fe58f160ca162 | |
parent | 810c9763690280cd2ce6affac10684be4d18cb0b (diff) |
Fix filtering the (No Section) section.
-rw-r--r-- | MobileCydia.mm | 4 |
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 |