summaryrefslogtreecommitdiff
path: root/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/postings.php2
-rw-r--r--htdocs/src/Post.inc.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/htdocs/postings.php b/htdocs/postings.php
index b275858..8dc42cc 100644
--- a/htdocs/postings.php
+++ b/htdocs/postings.php
@@ -69,7 +69,7 @@ if ($post->getPrice() != 0) {
echo "</h2>";
-
+echo "<p>Category: " . $post->getCategory()->getName() . "</p>";
echo "<p>Date: ". date('r', $post->getTimestamp()) ."</p>";
echo "<p>Email: <a href=\"mailto:". $post->getPublicEmail() ."\">"
. $post->getPublicEmail() ."</a></p>";
diff --git a/htdocs/src/Post.inc.php b/htdocs/src/Post.inc.php
index 888a5fa..906778e 100644
--- a/htdocs/src/Post.inc.php
+++ b/htdocs/src/Post.inc.php
@@ -213,7 +213,7 @@ class Post {
public function getCategory() {
if ($this->category == NULL) {
- $this->category = Categories::getById($this->info['category_id']);
+ $this->category = Category::getById($this->info['category_id']);
}
return $this->category;