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 <marc@infomarc.info>
This commit is contained in:
parent
9c0a2b2837
commit
85f6849921
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user