mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix limit
This commit is contained in:
parent
47a2162b88
commit
f563ae7aaf
|
|
@ -35,6 +35,9 @@ $entity = GETPOSTINT('entity') ? GETPOSTINT('entity') : $conf->entity;
|
|||
$original_file = GETPOST("file", "alpha");
|
||||
$l = GETPOST('l', 'aZ09');
|
||||
$limit = GETPOSTINT('limit');
|
||||
if ($limit <= 0 || $limit > 100) {
|
||||
$limit = 20;
|
||||
}
|
||||
$cachedelay = GETPOSTINT('cachedelay'); // The delay in second of the cache
|
||||
|
||||
// Parameters for RSS
|
||||
|
|
@ -131,7 +134,7 @@ if ($rss) {
|
|||
$filters['lang'] = $l;
|
||||
}
|
||||
|
||||
$MAXNEWS = ($limit ? $limit : 20);
|
||||
$MAXNEWS = $limit;
|
||||
$arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', $MAXNEWS, 0, $filters);
|
||||
$eventarray = array();
|
||||
if (is_array($arrayofblogs)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user