We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8149409 commit efaffa0Copy full SHA for efaffa0
core/modules/PopUpNews/PopUpNews.php
@@ -13,6 +13,7 @@ class PopUpNews extends CodonModule
13
{
14
public function popupnewsitem($id) {
15
16
+ $id = intval($id);
17
if(!is_numeric($id)){header('Location: '.url('/'));}
18
19
$result = PopUpNewsData::popupnewsitem($id);
@@ -23,6 +24,7 @@ public function popupnewsitem($id) {
23
24
25
public function PopUpNewsList($howmany = 5)
26
27
+ $howmany = intval($howmany);
28
if(!is_numeric($howmany)){exit;}
29
30
$res = PopUpNewsData::get_news_list($howmany);
0 commit comments