#18795: Fixing exception when no theme is enabled

Work Item: 18795
This commit is contained in:
Sebastien Ros
2012-07-11 11:28:27 -07:00
parent a7f0494ae0
commit 28a7f7450d

View File

@@ -78,6 +78,10 @@ namespace Orchard.Widgets.Services {
}
public IEnumerable<string> GetZones(ExtensionDescriptor theme) {
if(theme == null) {
return Enumerable.Empty<string>();
}
IEnumerable<string> zones = new List<string>();
// get the zones for this theme