Fix error reporting on invalid request data
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
8451a7a5d2
commit
e1eb5e8e89
@ -26,7 +26,10 @@ if (!($values instanceof stdClass)) {
|
||||
$values = (array)$values;
|
||||
$result = PMA_config_validate($vids, $values, true);
|
||||
if ($result === false) {
|
||||
$result = 'Wrong data or no validation for ' . $vids;
|
||||
$result = sprintf(
|
||||
__('Wrong data or no validation for %s'),
|
||||
implode(',', $vids)
|
||||
);
|
||||
}
|
||||
echo $result !== true ? json_encode($result) : '';
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user