#3373 fixes error when going to forms section when forms is not installed

This commit is contained in:
Dave Woestenborghs
2018-10-24 16:35:43 +02:00
committed by Sebastiaan Janssen
parent 1d87ceaacf
commit 44b837a9ec

View File

@@ -43,7 +43,7 @@ namespace Umbraco.Web.Trees
//find all tree definitions that have the current application alias
var appTrees = Services.ApplicationTreeService.GetApplicationTrees(application, onlyInitialized).ToArray();
if (string.IsNullOrEmpty(tree) == false || appTrees.Length == 1 || appTrees.Any() == false)
if (string.IsNullOrEmpty(tree) == false || appTrees.Length == 1)
{
var apptree = string.IsNullOrEmpty(tree) == false
? appTrees.SingleOrDefault(x => x.Alias == tree)