]> git.saurik.com Git - cydia.git/commitdiff
Fix filtering the (No Section) section.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 00:14:17 +0000 (16:14 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 00:14:17 +0000 (16:14 -0800)
MobileCydia.mm

index 31b1ba204ea1dafe145a18acf11cbbb02dcb7824..4a9ba45a8e369476166fd753bfc9b63ce51af57b 100644 (file)
@@ -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