From 7b55001eeeb326323d020dcfac2f864f8c3ad633 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 26 Apr 2017 15:29:22 +0300 Subject: fix various issues reported by static analysis update gitlab-ci config --- include/errorhandler.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'include/errorhandler.php') diff --git a/include/errorhandler.php b/include/errorhandler.php index f757b68d1..bb2fbaee3 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -32,8 +32,6 @@ function format_backtrace($trace) { } function ttrss_error_handler($errno, $errstr, $file, $line, $context) { - global $logger; - if (error_reporting() == 0 || !$errno) return false; $file = substr(str_replace(dirname(dirname(__FILE__)), "", $file), 1); @@ -46,7 +44,6 @@ function ttrss_error_handler($errno, $errstr, $file, $line, $context) { } function ttrss_fatal_handler() { - global $logger; global $last_query; $error = error_get_last(); -- cgit v1.2.3-54-g00ecf