draft comment create/show

This commit is contained in:
Dennis Eichhorn 2020-10-25 23:07:28 +01:00
parent e6bf3ccd56
commit 5aa891bffb
2 changed files with 3 additions and 3 deletions

View File

@ -111,8 +111,8 @@ final class ApiController extends Controller
private function validateCommentCreate(RequestAbstract $request) : array private function validateCommentCreate(RequestAbstract $request) : array
{ {
$val = []; $val = [];
if (($val['title'] = empty($request->getData('title'))) if (($val['plain'] = empty($request->getData('plain')))
|| ($val['plain'] = empty($request->getData('plain'))) || ($val['list'] = empty($request->getData('list')))
) { ) {
return $val; return $val;
} }

View File

@ -52,7 +52,7 @@ class ListView extends View
*/ */
public function render(...$data) : string public function render(...$data) : string
{ {
$this->list = $data[0]; $this->commentList = $data[0];
return parent::render(); return parent::render();
} }