diff --git a/contrib/numeric_score/main.php b/contrib/numeric_score/main.php index 333b5d21..4be5a937 100644 --- a/contrib/numeric_score/main.php +++ b/contrib/numeric_score/main.php @@ -122,13 +122,13 @@ class NumericScore implements Extension { $year = $event->get_arg(0); } //month - if(int_escape($event->get_arg(1)) == 0){ + if(int_escape($event->get_arg(1)) == 0 || int_escape($event->get_arg(1)) > 12){ $month = date("m"); }else{ $month = $event->get_arg(1); } //day - if(int_escape($event->get_arg(2)) == 0){ + if(int_escape($event->get_arg(2)) == 0 || int_escape($event->get_arg(2)) > 31){ $day = date("d"); }else{ $day = $event->get_arg(2); diff --git a/contrib/numeric_score/theme.php b/contrib/numeric_score/theme.php index 50f711e4..8aa60508 100644 --- a/contrib/numeric_score/theme.php +++ b/contrib/numeric_score/theme.php @@ -67,7 +67,7 @@ class NumericScoreTheme extends Themelet { ''; } - $b_dte = make_link("popular_by_".$dte[3]."/".date($dte[2], (strtotime(('-1 '.$dte[3]), strtotime($dte[0]))))); + $b_dte = make_link("popular_by_".$dte[3]."/".date($dte[2], (strtotime('-1 '.$dte[3], strtotime($dte[0]))))); $f_dte = make_link("popular_by_".$dte[3]."/".date($dte[2], (strtotime('+1 '.$dte[3], strtotime($dte[0]))))); $html = '

« '.$dte[1]