From 0c9b1f5338cfa05ba4e264b4a726856a1ca7e029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 15 Aug 2018 20:21:49 +0200 Subject: [PATCH] Mapper can be null if provided id is a board id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/BoardService.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Service/BoardService.php b/lib/Service/BoardService.php index befce6f30..51c59c8b3 100644 --- a/lib/Service/BoardService.php +++ b/lib/Service/BoardService.php @@ -165,10 +165,6 @@ class BoardService { */ public function isArchived($mapper, $id) { - if ($mapper === false || $mapper === null) { - throw new BadRequestException('mapper must be provided'); - } - if (is_numeric($id) === false) { throw new BadRequestException('id must be a number'); }