Skip to content

Commit efaffa0

Browse files
author
DavidJClark
committed
Update to controller
1 parent 8149409 commit efaffa0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: core/modules/PopUpNews/PopUpNews.php

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class PopUpNews extends CodonModule
1313
{
1414
public function popupnewsitem($id) {
1515

16+
$id = intval($id);
1617
if(!is_numeric($id)){header('Location: '.url('/'));}
1718

1819
$result = PopUpNewsData::popupnewsitem($id);
@@ -23,6 +24,7 @@ public function popupnewsitem($id) {
2324

2425
public function PopUpNewsList($howmany = 5)
2526
{
27+
$howmany = intval($howmany);
2628
if(!is_numeric($howmany)){exit;}
2729

2830
$res = PopUpNewsData::get_news_list($howmany);

0 commit comments

Comments
 (0)