aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/index.php')
-rw-r--r--mod/blog/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/blog/index.php b/mod/blog/index.php
index 23ccb9dcb..b7f1912f6 100644
--- a/mod/blog/index.php
+++ b/mod/blog/index.php
@@ -15,6 +15,10 @@
// Get the current page's owner
$page_owner = page_owner_entity();
+ if ($page_owner === false || is_null($page_owner)) {
+ $page_owner = $_SESSION['user'];
+ set_page_owner($page_owner->getGUID());
+ }
// Get any blog posts to display
$posts = $page_owner->getObjects('blog');