Fix a PHP notice "Undefined index: pred_username"
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
88aa819c07
commit
33d6b0cf3c
@ -2677,7 +2677,10 @@ class Privileges
|
||||
}
|
||||
|
||||
$sql_query = '';
|
||||
if ($_POST['pred_username'] === 'any') {
|
||||
// Some reports where sent to the error reporting server with phpMyAdmin 5.1.0
|
||||
// pred_username was reported to be not defined
|
||||
$predUsername = $_POST['pred_username'] ?? '';
|
||||
if ($predUsername === 'any') {
|
||||
$username = '';
|
||||
}
|
||||
switch ($_POST['pred_hostname']) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user