File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,8 @@ public function getPagingValue($key) {
248248 public function getPagingSQL ($ sql_where = '1 ' )
249249 {
250250 global $ app , $ conf ;
251+
252+ $ old_search_limit = intval ($ _SESSION ['search ' ]['limit ' ]);
251253
252254 //* Add Global Limit from selectbox
253255 if (!empty ($ _POST ['search_limit ' ]) and $ app ->functions ->intval ($ _POST ['search_limit ' ]) > 0 ){
@@ -272,6 +274,9 @@ public function getPagingSQL($sql_where = '1')
272274
273275 //* set PAGE to worth request variable "PAGE" - ? setze page auf wert der request variablen "page"
274276 if (isset ($ _REQUEST ["page " ])) $ _SESSION ["search " ][$ list_name ]["page " ] = $ app ->functions ->intval ($ _REQUEST ["page " ]);
277+
278+ //* Set search to changed when search limit has been changed.
279+ if (intval ($ _SESSION ['search ' ]['limit ' ]) != $ old_search_limit ) $ this ->searchChanged = 1 ;
275280
276281 //* PAGE to 0 set, if look for themselves ? page auf 0 setzen, wenn suche sich ge�ndert hat.
277282 if ($ this ->searchChanged == 1 ) $ _SESSION ['search ' ][$ list_name ]['page ' ] = 0 ;
You can’t perform that action at this time.
0 commit comments