summaryrefslogtreecommitdiff
path: root/viewuser.php
diff options
context:
space:
mode:
Diffstat (limited to 'viewuser.php')
-rwxr-xr-xviewuser.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/viewuser.php b/viewuser.php
index 20dc55f..8d9c9c1 100755
--- a/viewuser.php
+++ b/viewuser.php
@@ -25,7 +25,7 @@ if (!$current->has_value()) {
<body>
<?php include_once "includes/templates/header.php" ?>
<h1><?= $current->name; ?></h1>
- member since <?= date('M d, Y', strtotime($current->date)); ?>
+ member since <?= date('M d, Y', strtotime($current->date_registered)); ?>
<h2><?= $current->name; ?>'s Threads</h2>
<table>
<tr>
@@ -39,10 +39,10 @@ if (!$current->has_value()) {
<b><a href="viewthread.php?id=<?= $thread->id ?>"><?= $thread->subject ?></a></b>
<small>on <?= date('M d, Y', strtotime($thread->date_created)); ?></small>
</td>
- <td><a href="viewcategory.php?id=<?= $thread->category->id ?>"><?= $thread->category->name ?></a></td>
+ <td><a href="viewcategory.php?id=<?= $thread->category_id ?>"><?= $thread->get_parent_category()->name ?></a></td>
<?php $latest_post = $thread->get_latest_post(); if ($latest_post->has_value()): ?>
<td>
- <small>by <b><a href="viewuser.php?id=<?= $latest_post->author->id ?>"><?= $latest_post->author->name ?></a></b>
+ <small>by <b><a href="viewuser.php?id=<?= $latest_post->author_id ?>"><?= $latest_post->get_author()->name ?></a></b>
on <?= $latest_post->date_created ?></small>
</td>
<?php else: ?>