mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
Guarrantee maxmatchs is an integer value.
This commit is contained in:
parent
2026b25976
commit
f2329fc7bc
@ -133,7 +133,7 @@
|
||||
'link' => 'nextmatchs_link.tpl'
|
||||
));
|
||||
|
||||
$maxmatchs = $phpgw_info['user']['preferences']['common']['maxmatchs'];
|
||||
$maxmatchs = intval($phpgw_info['user']['preferences']['common']['maxmatchs']);
|
||||
|
||||
if (($start != 0) && ($start > $maxmatchs))
|
||||
{
|
||||
@ -184,7 +184,7 @@
|
||||
$tpl->set_file(array(
|
||||
'link' => 'nextmatchs_link.tpl'
|
||||
));
|
||||
$maxmatchs = $phpgw_info['user']['preferences']['common']['maxmatchs'];
|
||||
$maxmatchs = intval($phpgw_info['user']['preferences']['common']['maxmatchs']);
|
||||
|
||||
if (($total > $maxmatchs) && ($total > $start + $maxmatchs))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user