mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Only trap E_ERROR in session handling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
f605e1dabf
commit
34ba91e141
1 changed files with 3 additions and 1 deletions
|
|
@ -181,7 +181,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