From 2d69d40fa2a42332f00c6bc439f1053f6aebdf37 Mon Sep 17 00:00:00 2001 From: Deven Bansod Date: Thu, 22 Sep 2016 12:01:14 +0530 Subject: [PATCH] Fix error in adcaf7c Fix #12382 Signed-off-by: Deven Bansod --- libraries/controllers/table/TableSearchController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/controllers/table/TableSearchController.php b/libraries/controllers/table/TableSearchController.php index c2c7462e41..134cace445 100644 --- a/libraries/controllers/table/TableSearchController.php +++ b/libraries/controllers/table/TableSearchController.php @@ -460,10 +460,10 @@ class TableSearchController extends TableController return; } $key = array_search($field, $this->_columnNames); - $search_index = 0; - if (PMA_isValid(intval($_REQUEST['it']), 'numeric')) { - $search_index = $_REQUEST['it']; - } + $search_index + = ((isset($_REQUEST['it']) && is_numeric($_REQUEST['it'])) + ? intval($_REQUEST['it']) : 0); + $properties = $this->getColumnProperties($search_index, $key); $this->response->addJSON( 'field_type', htmlspecialchars($properties['type'])