Backports fixes to SQL parameterization and PetaPoco mem updates

This commit is contained in:
Shannon
2014-09-29 17:11:58 +10:00
parent 33ccf490ab
commit ba52f9235e
31 changed files with 1909 additions and 1487 deletions

View File

@@ -402,6 +402,10 @@ namespace Umbraco.Core.Services
public IEnumerable<IMedia> GetDescendants(int id)
{
var media = GetById(id);
if (media == null)
{
return Enumerable.Empty<IMedia>();
}
return GetDescendants(media);
}
@@ -1198,4 +1202,4 @@ namespace Umbraco.Core.Services
public static event TypedEventHandler<IMediaService, RecycleBinEventArgs> EmptiedRecycleBin;
#endregion
}
}
}