From 5ade12bc65ac3f264ff6b784ecc379a679751fba Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Mon, 22 May 2017 11:10:37 +0200 Subject: [PATCH] #5259 fix pagination in data performance page --- www/include/Administration/performance/viewData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/include/Administration/performance/viewData.php b/www/include/Administration/performance/viewData.php index d7ba0a8dde8..153a16890d4 100644 --- a/www/include/Administration/performance/viewData.php +++ b/www/include/Administration/performance/viewData.php @@ -71,7 +71,7 @@ $inputArguments = array( 'search' => FILTER_SANITIZE_STRING, 'searchH' => FILTER_SANITIZE_STRING, - 'num' => FILTER_SANITIZE_STRING, + 'num' => FILTER_SANITIZE_NUMBER_INT, 'searchS' => FILTER_SANITIZE_STRING, 'search' => FILTER_SANITIZE_STRING, 'searchP' => FILTER_SANITIZE_STRING, @@ -95,7 +95,7 @@ $inputs = array(); foreach ($inputArguments as $argumentName => $argumentValue) { - if (!is_null($inputGet[$argumentName])) { + if (!is_null($inputGet[$argumentName]) && trim($inputGet[$argumentName]) != '') { $inputs[$argumentName] = $inputGet[$argumentName]; } else { $inputs[$argumentName] = $inputPost[$argumentName];