#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:
andrerod@andrerod-dev1.redmond.corp.microsoft.com
2011-08-26 11:43:45 -07:00
parent 7b13fb310e
commit 19cd24d5c3

View File

@@ -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));
}