From 72afd81c439dc2dc2e0b68aa93ff88f8e6aa9ba1 Mon Sep 17 00:00:00 2001 From: Deven Bansod Date: Sat, 8 Aug 2015 23:54:16 +0530 Subject: [PATCH] Do not act, if no row is selected from query output Signed-off-by: Deven Bansod --- tbl_row_action.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tbl_row_action.php b/tbl_row_action.php index 2eeaa53471..ba542126fd 100644 --- a/tbl_row_action.php +++ b/tbl_row_action.php @@ -56,6 +56,15 @@ case 'edit': } if (!empty($submit_mult)) { + + if (! isset($_REQUEST['rows_to_delete']) + || ! is_array($_REQUEST['rows_to_delete']) + ) { + $response = PMA_Response::getInstance(); + $response->isSuccess(false); + $response->addJSON('message', __('No row selected.')); + } + switch($submit_mult) { case 'row_edit': // As we got the rows to be edited from the