Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-07-05 23:20:59 +0300
committerJulius Härtl <jus@bitgrid.net>2022-07-05 23:20:59 +0300
commitf98b5764eaefb2e76883f8948a61d4568ffe35e4 (patch)
treee47fb029bbfaab1c6f6bee3276639189890e0016 /lib
parent8ee0a0fad0b9a0ce128b6bd1da55bb0edd30ed58 (diff)
Ensure that lists have a title
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/StackService.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/StackService.php b/lib/Service/StackService.php
index 5d993b8e..da80bbda 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');
}