summaryrefslogtreecommitdiff
path: root/includes/model/Post.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-07-20 12:29:11 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-07-20 12:29:11 -0600
commit3c5828b1a787bffa6e886a4952741e4bcaeb43b9 (patch)
tree5e40fd78ad3c5301c62207ecfa4bd109a582db69 /includes/model/Post.php
parentf5e972c030675f46cda543e13da1b787457e070b (diff)
A bit of code cleanup
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);
}