mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#18044: Can not match "recipes == null" in "if” condition of HarvestRecipes and ExecuteRecipe functions.
--HG-- branch : 1.x extra : transplant_source : %CC%5B%01%EA%8E%FC%D2%7C%22%8D%E9%8F%DE%C4-%0E%11%EC2%D5
This commit is contained in:
parent
7b13fb310e
commit
19cd24d5c3
@@ -28,7 +28,7 @@ namespace Orchard.Recipes.Commands {
|
||||
}
|
||||
|
||||
IEnumerable<Recipe> recipes = _recipeHarvester.HarvestRecipes(extensionId);
|
||||
if (recipes == null) {
|
||||
if (recipes.Count() == 0) {
|
||||
throw new OrchardException(T("No recipes found for extension {0}.", extensionId));
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace Orchard.Recipes.Commands {
|
||||
}
|
||||
|
||||
IEnumerable<Recipe> recipes = _recipeHarvester.HarvestRecipes(extensionId);
|
||||
if (recipes == null) {
|
||||
if (recipes.Count() == 0) {
|
||||
throw new OrchardException(T("No recipes found for extension {0}.", extensionId));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user