Fallback on empty string for #16146 if session_max_rows is not set

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-07-23 16:15:27 +02:00
parent 3891a0834c
commit 38c09bcee9
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -3967,7 +3967,7 @@ class Results
}
// The value can also be from _GET as described on issue #16146 when sorting results
$sessionMaxRows = $_GET['session_max_rows'] ?? $_POST['session_max_rows'];
$sessionMaxRows = $_GET['session_max_rows'] ?? $_POST['session_max_rows'] ?? '';
// as this is a form value, the type is always string so we cannot
// use Core::isValid($_POST['session_max_rows'], 'integer')