Skip to content
Permalink
Browse files Browse the repository at this point in the history
Update to controller
  • Loading branch information
DavidJClark committed Apr 16, 2013
1 parent 8149409 commit efaffa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/modules/PopUpNews/PopUpNews.php
Expand Up @@ -13,6 +13,7 @@ class PopUpNews extends CodonModule
{
public function popupnewsitem($id) {

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

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

public function PopUpNewsList($howmany = 5)
{
$howmany = intval($howmany);
if(!is_numeric($howmany)){exit;}

$res = PopUpNewsData::get_news_list($howmany);
Expand Down

0 comments on commit efaffa0

Please sign in to comment.