aboutsummaryrefslogtreecommitdiffstats
path: root/admin/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/index.php')
-rw-r--r--admin/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/index.php b/admin/index.php
index 788cee4..b3508b5 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -25,7 +25,7 @@ $UserCountStatement = $Database->query(sprintf($execute, User\Attribute::TABLE))
try {
$LastPage = Page\Factory::build($LastPageStatement->fetchColumn());
- $LastPageUser = User\Factory::build($LastPage->attr('user'));
+ $LastPageUser = User\Factory::build($LastPage->get('user'));
$PageItemTemplate = generatePageItemTemplate($LastPage, $LastPageUser);
}
@@ -35,7 +35,7 @@ catch(User\Exception $Exception){}
try {
$LastPost = Post\Factory::build($LastPostStatement->fetchColumn());
- $LastPostUser = User\Factory::build($LastPost->attr('user'));
+ $LastPostUser = User\Factory::build($LastPost->get('user'));
$PostItemTemplate = generatePostItemTemplate($LastPost, $LastPostUser);
}