Skip to content

Commit 0ffb5c8

Browse files
committed
Cast as int scroll and nblus
1 parent 64507f9 commit 0ffb5c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

article.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//recuperation de tous les flux
1616
$allFeeds = $feedManager->getFeedsPerFolder();
1717
$tpl->assign('allFeeds',$allFeeds);
18-
$scroll = isset($_['scroll']) ? $_['scroll'] : 0;
18+
$scroll = isset($_['scroll']) ? (int) $_['scroll'] : 0;
1919
$tpl->assign('scrollpage',$scroll);
2020
// récupération des variables pour l'affichage
2121
$articleConf['articlePerPages'] = (int) $configurationManager->get('articlePerPages');
@@ -47,7 +47,7 @@
4747
if($articleDisplayAuthor) $target .= '`'.MYSQL_PREFIX.'event`.`creator`,';
4848
$target .= '`'.MYSQL_PREFIX.'event`.`id`';
4949

50-
$nblus = isset($_['nblus']) ? $_['nblus'] : 0;
50+
$nblus = isset($_['nblus']) ? (int) $_['nblus'] : 0;
5151
$articleConf['startArticle'] = ($scroll*$articleConf['articlePerPages'])-$nblus;
5252
if ($articleConf['startArticle'] < 0) $articleConf['startArticle']=0;
5353
$action = $_['action'];

0 commit comments

Comments
 (0)