From 85f6849921e8a2ab5f0e5e2cd2f636ca93bab17c Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 2 Sep 2015 08:05:24 -0400 Subject: [PATCH] Avoid fetching a variable that was only introduced in MySQL 5.7.2 Fix a notice due to the new way of fetching system variables Signed-off-by: Marc Delisle --- libraries/server_privileges.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index c103d79d66..7e5f383ee4 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -1801,11 +1801,11 @@ function PMA_getCurrentAuthenticationPlugin( if (isset($row) && $row && ! empty($row['plugin'])) { $authentication_plugin = $row['plugin']; } - } else { + } elseif (PMA_MYSQL_INT_VERSION >= 50702) { $row = $GLOBALS['dbi']->fetchSingleRow( 'SELECT @@default_authentication_plugin' ); - $authentication_plugin = $row['Value']; + $authentication_plugin = $row['@@default_authentication_plugin']; } return $authentication_plugin;