summaryrefslogtreecommitdiff
path: root/includes/model/Post.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model/Post.php')
-rwxr-xr-xincludes/model/Post.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/model/Post.php b/includes/model/Post.php
index 1b64490..46a0af0 100755
--- a/includes/model/Post.php
+++ b/includes/model/Post.php
@@ -78,8 +78,8 @@ class Post
$this->has_value = true;
}
- public function has_value()
- {
+ public function has_value(): bool
+ {
return $this->has_value;
}
@@ -175,8 +175,7 @@ class Post
$posts = array();
foreach ($result as $row) {
- $post = new Post();
- $post->get_from_database($row['post_id']);
+ $post = new Post($row['post_id']);
array_push($posts, $post);
}