diff options
author | William Desportes <williamdes@wdes.fr> | 2019-05-28 14:57:35 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2019-05-28 14:57:35 +0300 |
commit | 62d169258e10593387635846342659223913b3f7 (patch) | |
tree | 30b8f113f6a632faf843983eda6ede83504de9b4 /tbl_operations.php | |
parent | 946012f9c8fcbc857e1ddba3459aca5ab618df5f (diff) |
Fix #14987 - Add check for empty input to change_collation
Fixes: #14987
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'tbl_operations.php')
-rw-r--r-- | tbl_operations.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tbl_operations.php b/tbl_operations.php index 4ff5ab9d69..5ce82ee175 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -214,6 +214,18 @@ if (isset($_POST['submitoptions'])) { $GLOBALS['db'], $GLOBALS['table'], $_POST['tbl_collation'] ); } + + if (isset($_POST['tbl_collation']) && empty($_POST['tbl_collation'])) { + $response = Response::getInstance(); + if ($response->isAjax()) { + $response->setRequestStatus(false); + $response->addJSON( + 'message', + Message::error(__('No collation provided.')) + ); + exit; + } + } } /** * Reordering the table has been requested by the user |