From 4ba0eb88d71073d7ca6dd507d8bd260de3a017a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sat, 7 Jan 2017 15:08:26 +0100 Subject: [PATCH] Do not try to add profiling to reponses not handled by Response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/common.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 16eb83e9ac..60ae8fa7f0 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -864,7 +864,7 @@ if (! defined('PMA_MINIMUM_COMMON')) { if (! defined('PMA_BYPASS_GET_INSTANCE')) { $response = Response::getInstance(); } - if (isset($_SESSION['profiling'])) { + if (isset($response) && isset($_SESSION['profiling'])) { $header = $response->getHeader(); $scripts = $header->getScripts(); $scripts->addFile('chart.js');