mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Changing Count for Any
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Orchard.Setup.Controllers {
|
||||
var recipes = _setupService.Recipes().ToList();
|
||||
string recipeDescription = null;
|
||||
|
||||
if (recipes.Count > 0) {
|
||||
if (recipes.Any()) {
|
||||
recipeDescription = recipes[0].Description;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user