Skip to content

Commit 354b2f5

Browse files
committed
Update RouterControllerTrait.php
1 parent f8ce57d commit 354b2f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/RouterControllerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function withRequest(RequestInterface &$request)
6464
*/
6565
public function viewDir(string $viewDir = null)
6666
{
67-
$this->viewDir = App::resolveByApp($viewDir);
67+
if ($viewDir) $this->viewDir = App::resolveByApp($viewDir);
6868
return $this;
6969
}
7070

0 commit comments

Comments
 (0)