Skip to content
Permalink
Browse files Browse the repository at this point in the history
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 96e0aa3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup/validate.php
Expand Up @@ -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.