Skip to content
Snippets Groups Projects
Commit f2003b61 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

let trails check error for relevance in error handler, fixes #2346

Closes #2346

Merge request studip/studip!1535
parent 078f635d
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
...@@ -263,6 +263,9 @@ class Trails_Dispatcher { ...@@ -263,6 +263,9 @@ class Trails_Dispatcher {
* @return void * @return void
*/ */
function error_handler($errno, $string, $file, $line, $context) { function error_handler($errno, $string, $file, $line, $context) {
if (!(5888 & $errno)) {
return false;
}
throw new Trails_Exception(500, $string); throw new Trails_Exception(500, $string);
} }
} }
This diff is collapsed.
...@@ -291,6 +291,9 @@ class Trails_Dispatcher { ...@@ -291,6 +291,9 @@ class Trails_Dispatcher {
* @return void * @return void
*/ */
function error_handler($errno, $string, $file, $line, $context) { function error_handler($errno, $string, $file, $line, $context) {
if (!(5888 & $errno)) {
return false;
}
throw new Trails_Exception(500, $string); throw new Trails_Exception(500, $string);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment