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. --- graph.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graph.php') diff --git a/graph.php b/graph.php index e170598..31f697c 100644 --- a/graph.php +++ b/graph.php @@ -3,11 +3,11 @@ require_once 'conf/common.inc.php'; require_once 'inc/functions.inc.php'; -$plugin = validate_get($_GET['p'], 'plugin'); +$plugin = validate_get(GET('p'), 'plugin'); $width = empty($_GET['x']) ? $CONFIG['width'] : $_GET['x']; $heigth = empty($_GET['y']) ? $CONFIG['heigth'] : $_GET['y']; -if (validate_get($_GET['h'], 'host') === NULL) { +if (validate_get(GET('h'), 'host') === NULL) { error_log('CGP Error: plugin contains unknown characters'); error_image(); } -- cgit v1.1