From 1bce11aec73bcd6f90fe8e72877b4061ae8d45af Mon Sep 17 00:00:00 2001 From: Karol Nowacki Date: Thu, 21 Apr 2011 20:24:38 +0200 Subject: resolve php notices Including a lot of undefined $_GET values. --- plugin/memcached.php | 2 +- plugin/swap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/memcached.php b/plugin/memcached.php index b30c27c..e011c9e 100644 --- a/plugin/memcached.php +++ b/plugin/memcached.php @@ -21,7 +21,7 @@ require_once 'inc/collectd.inc.php'; # ps_cputime.rrd -switch($_GET['t']) { +switch(GET('t')) { # df-cache.rrd case 'df': require_once 'type/Default.class.php'; diff --git a/plugin/swap.php b/plugin/swap.php index 9449b55..c24d90b 100644 --- a/plugin/swap.php +++ b/plugin/swap.php @@ -11,7 +11,7 @@ require_once 'inc/collectd.inc.php'; # swap/swap-free.rrd # swap/swap-used.rrd -switch($_GET['t']) { +switch(GET('t')) { case 'swap': require_once 'type/GenericStacked.class.php'; $obj = new Type_GenericStacked($CONFIG); -- cgit v1.1