]> git.wh0rd.org Git - tt-rss.git/commitdiff
errorhandler: remove unneeded stuff
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 04:32:45 +0000 (08:32 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 04:32:45 +0000 (08:32 +0400)
include/errorhandler.php

index d5674826df7926334dd73097efad5e1c381f3388..f7fadc17236a01b187897c23f6d0fe8cb0f25928 100644 (file)
@@ -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"];