mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Only trap E_ERROR in session handling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
68c85ab93d
commit
69c7e7f1aa
1 changed files with 3 additions and 1 deletions
|
|
@ -182,7 +182,9 @@ class Internal extends Session {
|
|||
* @throws \ErrorException
|
||||
*/
|
||||
public function trapError(int $errorNumber, string $errorString) {
|
||||
throw new \ErrorException($errorString);
|
||||
if ($errorNumber & E_ERROR) {
|
||||
throw new \ErrorException($errorString);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue