mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Fixed bug #15041
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041951
This commit is contained in:
@@ -16,7 +16,8 @@ namespace Orchard.Blogs.Services {
|
||||
|
||||
public Blog Get(string slug) {
|
||||
BlogRecord record = _repository.Get(br => br.Slug == slug && br.Enabled);
|
||||
return _contentManager.Get<Blog>(record.Id);
|
||||
|
||||
return record != null ?_contentManager.Get<Blog>(record.Id) : null;
|
||||
}
|
||||
|
||||
public IEnumerable<Blog> Get() {
|
||||
|
Reference in New Issue
Block a user