瀏覽代碼

Update Page\Edit

Visman 4 年之前
父節點
當前提交
ae1c717afe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Pages/Edit.php

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

@@ -27,7 +27,7 @@ class Edit extends Page
      */
     public function edit(array $args, string $method): Page
     {
-        $post = $this->c->posts->load((int) $args['id']);
+        $post = $this->c->posts->load($args['id']);
 
         if (
             empty($post)