浏览代码

Update Page\Poll

Visman 4 年之前
父节点
当前提交
c133e47455
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Pages/Poll.php

+ 1 - 1
app/Models/Pages/Poll.php

@@ -22,7 +22,7 @@ class Poll extends Page
      */
      */
     public function vote(array $args, string $method): Page
     public function vote(array $args, string $method): Page
     {
     {
-        $tid   = (int) $args['tid'];
+        $tid   = $args['tid'];
         $topic = $this->c->topics->load($tid);
         $topic = $this->c->topics->load($tid);
 
 
         if (
         if (