mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
fixed bug where an undefined variable could be dereferenced
which could cause the server to choke.
This commit is contained in:
parent
cf9b5d9441
commit
2809e405d5
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ coreHelpers = function (ghost) {
|
|||
blog = ghost.blogGlobals();
|
||||
title = blog.title;
|
||||
} else {
|
||||
title = this.post.title;
|
||||
title = this.post ? this.post.title : '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue