Removed direct references to $_REQUEST and $_POST
This commit is contained in:
@@ -333,8 +333,8 @@ class Model_Service_Plugin_Adsl extends Model_Service_Plugin {
|
||||
$c=0;
|
||||
// If we came in via a post to show a particular month, then show that, otherwise show the yearly result
|
||||
if (! is_null($month) AND trim($month)) {
|
||||
$highchart->title(sprintf('DSL traffic usage for %s',$_POST['month']));
|
||||
$x = $this->get_traffic_typedaily(strtotime($_POST['month'].'-01'));
|
||||
$highchart->title(sprintf('DSL traffic usage for %s',Arr::get($_POST,'month')));
|
||||
$x = $this->get_traffic_typedaily(strtotime(Arr::get($_POST,'month').'-01'));
|
||||
|
||||
} else {
|
||||
$highchart->title(sprintf('Monthly DSL traffic usage as at %s',$this->traffic->find_last()->date));
|
||||
@@ -417,7 +417,7 @@ class Model_Service_Plugin_Adsl extends Model_Service_Plugin {
|
||||
public function traffic_table($month=NULL) {
|
||||
// If we came in via a post to show a particular month, then show that, otherwise show the yearly result
|
||||
if (! is_null($month) AND trim($month)) {
|
||||
$x = $this->get_traffic_dailytype(strtotime($_POST['month'].'-01'));
|
||||
$x = $this->get_traffic_dailytype(strtotime(Arr::get($_POST,'month').'-01'));
|
||||
$index = 'Date';
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user