Przeglądaj źródła

Fix Search\Delete method

For delete users without deleting messages.
Visman 3 lat temu
rodzic
commit
db6231aed4
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      app/Models/Search/Delete.php

+ 3 - 1
app/Models/Search/Delete.php

@@ -132,6 +132,8 @@ class Delete extends Method
                 WHERE post_id IN (?ai:posts)';
         }
 
-        $this->c->DB->exec($query, $vars);
+        if (isset($query, $vars)) {
+            $this->c->DB->exec($query, $vars);
+        }
     }
 }