File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,8 @@ function getSearchSQL($sql_where = "") {
156156
157157 foreach ($ this ->listDef ["item " ] as $ i ) {
158158 $ field = $ i ["field " ];
159- if ($ _REQUEST [$ search_prefix .$ field ] != '' ) $ sql_where .= " $ field " .$ i ["op " ]." ' " .$ i ["prefix " ].$ _REQUEST [$ search_prefix .$ field ].$ i ["suffix " ]."' and " ;
159+ //if($_REQUEST[$search_prefix.$field] != '') $sql_where .= " $field ".$i["op"]." '".$i["prefix"].$_REQUEST[$search_prefix.$field].$i["suffix"]."' and";
160+ if ($ _SESSION ["search " ][$ list_name ][$ search_prefix .$ field ] != '' ) $ sql_where .= " $ field " .$ i ["op " ]." ' " .$ i ["prefix " ].$ _SESSION ["search " ][$ list_name ][$ search_prefix .$ field ].$ i ["suffix " ]."' and " ;
160161 }
161162
162163 if ($ sql_where != '' ) {
@@ -203,7 +204,7 @@ function getPagingSQL($sql_where = "1") {
203204
204205
205206 if ($ _SESSION ["search " ][$ list_name ]["page " ] > 0 ) $ vars ["show_page_back " ] = 1 ;
206- if ($ _SESSION ["search " ][$ list_name ]["page " ] <= $ seiten - 1 ) $ vars ["show_page_next " ] = 1 ;
207+ if ($ _SESSION ["search " ][$ list_name ]["page " ] <= $ vars [ " pages " ] - 1 ) $ vars ["show_page_next " ] = 1 ;
207208
208209 $ this ->pagingValues = $ vars ;
209210 $ this ->pagingHTML = $ this ->getPagingHTML ($ vars );
You can’t perform that action at this time.
0 commit comments