From 45447dc330ae258caf674d1895fe2db6d38cff02 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 18 Feb 2011 16:14:17 -0800 Subject: [PATCH] Fix filtering the (No Section) section. --- MobileCydia.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2