Fix #15986 - fatal error: Uncaught TypeError: array_flip() expects parameter 1 to be array, null given
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
a8f3df295a
commit
379dd368c9
@ -817,7 +817,7 @@ class FormDisplay
|
||||
$userPrefsDisallow = $GLOBALS['PMA_Config']->get('is_setup')
|
||||
? $this->_configFile->get('UserprefsDisallow', [])
|
||||
: $GLOBALS['cfg']['UserprefsDisallow'];
|
||||
$this->_userprefsDisallow = array_flip($userPrefsDisallow);
|
||||
$this->_userprefsDisallow = array_flip($userPrefsDisallow ?? []);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user