diff --git a/src/Umbraco.Core/Services/MediaService.cs b/src/Umbraco.Core/Services/MediaService.cs index f2c5526e8d..f978006c15 100644 --- a/src/Umbraco.Core/Services/MediaService.cs +++ b/src/Umbraco.Core/Services/MediaService.cs @@ -413,7 +413,7 @@ namespace Umbraco.Core.Services { var query = Query.Builder; //if the id is -1, then just get all - if (id > 0) + if (id != -1) { query.Where(x => x.ParentId == id); } @@ -443,7 +443,7 @@ namespace Umbraco.Core.Services var query = Query.Builder; //if the id is -1, then just get all - if (id > 0) + if (id != -1) { query.Where(x => x.Path.SqlContains(string.Format(",{0},", id), TextColumnType.NVarchar)); }