Skip to content
Permalink
Browse files

Fix error reporting on invalid request data

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information...
nijel committed Jun 17, 2016
1 parent ef1493d commit 96e0aa35653ec0c66084a7e9343465e16c1f769b
Showing with 4 additions and 1 deletion.
  1. +4 −1 setup/validate.php
@@ -26,6 +26,9 @@
$values = (array)$values;
$result = PMA\libraries\config\Validator::validate($GLOBALS['ConfigFile'], $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) : '';

0 comments on commit 96e0aa3

Please sign in to comment.
You can’t perform that action at this time.