diff --git a/api/src/Sharing.php b/api/src/Sharing.php index 7962a0ab4b..13640b379b 100644 --- a/api/src/Sharing.php +++ b/api/src/Sharing.php @@ -396,7 +396,7 @@ class Sharing $class = strpos($status, '404') === 0 ? 'EGroupware\Api\Exception\NotFound' : (strpos($status, '401') === 0 ? 'EGroupware\Api\Exception\NoPermission' : 'EGroupware\Api\Exception'); - throw new $class($message, $status); + throw new $class($message, (int)$status); } /**