Commit 6448a70e authored by Falko Timme's avatar Falko Timme
Browse files

- Lists: fixed search_limit drop-down (lists always showed 15 entries when you selected 5).

parent d7b5ecb2
...@@ -199,9 +199,10 @@ class listform { ...@@ -199,9 +199,10 @@ class listform {
$_SESSION['search']['limit'] = $app->functions->intval($_POST['search_limit']); $_SESSION['search']['limit'] = $app->functions->intval($_POST['search_limit']);
} }
if(preg_match('{^[0-9]$}',$_SESSION['search']['limit'])){ //if(preg_match('{^[0-9]$}',$_SESSION['search']['limit'])){
$_SESSION['search']['limit'] = 15; // $_SESSION['search']['limit'] = 15;
} //}
if(intval($_SESSION['search']['limit']) < 1) $_SESSION['search']['limit'] = 15;
//* Get Config variables //* Get Config variables
$list_name = $this->listDef['name']; $list_name = $this->listDef['name'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment