Skip to content
Snippets Groups Projects
Commit 77be1217 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

errorhandler: remove unneeded stuff

parent 7a51032c
No related branches found
No related tags found
No related merge requests found
......@@ -22,15 +22,10 @@ function ttrss_error_handler($errno, $errstr, $file, $line, $context) {
function ttrss_fatal_handler() {
global $logger;
$file = "UNKNOWN FILE";
$errstr = "UNKNOWN";
$errno = E_CORE_ERROR;
$line = -1;
$error = error_get_last();
if ($error !== NULL) {
$errno = $error["type"];
$errno = $error["type"];
$file = $error["file"];
$line = $error["line"];
$errstr = $error["message"];
......
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