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:
parent
3891a0834c
commit
38c09bcee9
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user