Mapper can be null if provided id is a board id
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -165,10 +165,6 @@ class BoardService {
|
|||||||
*/
|
*/
|
||||||
public function isArchived($mapper, $id) {
|
public function isArchived($mapper, $id) {
|
||||||
|
|
||||||
if ($mapper === false || $mapper === null) {
|
|
||||||
throw new BadRequestException('mapper must be provided');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_numeric($id) === false) {
|
if (is_numeric($id) === false) {
|
||||||
throw new BadRequestException('id must be a number');
|
throw new BadRequestException('id must be a number');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user