From d37b26a1e9d7faad68f9c1ad9d08e20a61088c5f Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 19 Nov 2015 11:27:01 -0500 Subject: [PATCH] Undefined index: SendErrorReports Signed-off-by: Marc Delisle --- ChangeLog | 1 + libraries/Error_Handler.class.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index bd4bdd8c25..b01ebe09b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog 4.5.3.0 (not yet released) - issue #11664 Online syntax verifier bug - "IF" on SELECT statement - issue #11665 Format breaks query with COUNT() +- issue Undefinex index: SendErrorReports 4.5.2.0 (not yet released) - issue #11589 Incorrect parameter in mysqli_fetch_fields() diff --git a/libraries/Error_Handler.class.php b/libraries/Error_Handler.class.php index d8518a2d7a..6abd863f73 100644 --- a/libraries/Error_Handler.class.php +++ b/libraries/Error_Handler.class.php @@ -296,6 +296,10 @@ class PMA_Error_Handler */ public function getDispErrors() { + // Not sure why but seen in reports.phpmyadmin.net + if (empty($GLOBALS['cfg']['SendErrorReports'])) { + $GLOBALS['cfg']['SendErrorReports'] = 'ask'; + } $retval = ''; // display errors if SendErrorReports is set to 'ask'. if ($GLOBALS['cfg']['SendErrorReports'] != 'never') {