Fixes: #15608
Pull-request: #15681
Ref: 2bc8afea5f
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
f402a8f2cf
@ -2330,11 +2330,7 @@ class DatabaseInterface
|
||||
{
|
||||
if (count($this->_current_user) == 0) {
|
||||
$user = $this->getCurrentUser();
|
||||
if ($user === '@') {// Request did not succeed, please do not cache
|
||||
return ['', ''];
|
||||
} else {
|
||||
$this->_current_user = explode("@", $user);
|
||||
}
|
||||
$this->_current_user = explode("@", $user);
|
||||
}
|
||||
return $this->_current_user;
|
||||
}
|
||||
@ -2517,8 +2513,6 @@ class DatabaseInterface
|
||||
/* Run post connect for user connections */
|
||||
if ($target == DatabaseInterface::CONNECT_USER) {
|
||||
$this->postConnect();
|
||||
} elseif ($target == DatabaseInterface::CONNECT_CONTROL) {
|
||||
$this->postConnectControl();
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
@ -458,3 +458,11 @@ $GLOBALS['PMA_Config']->loadUserPreferences();
|
||||
|
||||
/* Tell tracker that it can actually work */
|
||||
Tracker::enable();
|
||||
|
||||
if (! defined('PMA_MINIMUM_COMMON')
|
||||
&& ! empty($GLOBALS['server'])
|
||||
&& isset($GLOBALS['cfg']['ZeroConf'])
|
||||
&& $GLOBALS['cfg']['ZeroConf'] == true
|
||||
) {
|
||||
$GLOBALS['dbi']->postConnectControl();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user