diff --git a/lib/Service/StackService.php b/lib/Service/StackService.php index 5d993b8e3..da80bbda6 100644 --- a/lib/Service/StackService.php +++ b/lib/Service/StackService.php @@ -214,7 +214,7 @@ class StackService { * @throws BadRequestException */ public function create($title, $boardId, $order) { - if ($title === false || $title === null) { + if ($title === false || $title === null || mb_strlen($title) === 0) { throw new BadRequestException('title must be provided'); } @@ -291,7 +291,7 @@ class StackService { throw new BadRequestException('stack id must be a number'); } - if ($title === false || $title === null) { + if ($title === false || $title === null || mb_strlen($title) === 0) { throw new BadRequestException('title must be provided'); }