From: Jay Freeman (saurik) Date: Sat, 19 Feb 2011 00:14:17 +0000 (-0800) Subject: Fix filtering the (No Section) section. X-Git-Tag: v1.1.0%b1~310 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/45447dc330ae258caf674d1895fe2db6d38cff02 Fix filtering the (No Section) section. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 31b1ba20..4a9ba45a 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