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. --- detail.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'detail.php') diff --git a/detail.php b/detail.php index d153768..e9e80a0 100644 --- a/detail.php +++ b/detail.php @@ -11,14 +11,14 @@ if (empty($_GET['x'])) if (empty($_GET['y'])) $_GET['y'] = $CONFIG['detail-heigth']; -$host = validate_get($_GET['h'], 'host'); -$plugin = validate_get($_GET['p'], 'plugin'); -$pinstance = validate_get($_GET['pi'], 'pinstance'); -$type = validate_get($_GET['t'], 'type'); -$tinstance = validate_get($_GET['ti'], 'tinstance'); -$width = $_GET['x']; -$heigth = $_GET['y']; -$seconds = $_GET['s']; +$host = validate_get(GET('h'), 'host'); +$plugin = validate_get(GET('p'), 'plugin'); +$pinstance = validate_get(GET('pi'), 'pinstance'); +$type = validate_get(GET('t'), 'type'); +$tinstance = validate_get(GET('ti'), 'tinstance'); +$width = GET('x'); +$heigth = GET('y'); +$seconds = GET('s'); html_start(); -- cgit v1.1