From: Andrew Dolgov Date: Wed, 17 Apr 2013 04:32:45 +0000 (+0400) Subject: errorhandler: remove unneeded stuff X-Git-Tag: 1.7.9~25^2~185 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=77be1217e5e559b6f972afc4d5506426692d50fe;p=tt-rss.git errorhandler: remove unneeded stuff --- diff --git a/include/errorhandler.php b/include/errorhandler.php index d5674826..f7fadc17 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -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"];