Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed comments status filter

givanz53bd3e7ffaea
diff --git a/admin/controller/content/comments.php b/admin/controller/content/comments.php
old mode 100755
new mode 100644
index 09bed57..a5f7f85
--- a/admin/controller/content/comments.php
+++ b/admin/controller/content/comments.php
@@ -42,8 +42,8 @@ class Comments extends Listing {
function save() {
$type = $this->type;
- $comment_id = $this->request->get[$type . '_id'] ?? false;
- $status = $this->request->get['newstatus'] ?? false;
+ $comment_id = $this->request->get[$type . '_id'] ?? $this->request->post[$type . '_id'] ?? false;
+ $status = $this->request->get['newstatus'] ?? $this->request->post['newstatus'] ?? false;
if ($comment_id) {
$comments = model($type);