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.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin.php') diff --git a/plugin.php b/plugin.php index 54f75fb..4e8384c 100644 --- a/plugin.php +++ b/plugin.php @@ -4,10 +4,10 @@ require_once 'conf/common.inc.php'; require_once 'inc/functions.inc.php'; require_once 'inc/html.inc.php'; -$host = validate_get($_GET['h'], 'host'); -$plugin = validate_get($_GET['p'], 'plugin'); +$host = validate_get(GET('h'), 'host'); +$plugin = validate_get(GET('p'), 'plugin'); -if ($_GET['a'] == 'del') { +if (GET('a') == 'del') { plugin_header($host, $plugin, 1); } else { plugin_header($host, $plugin, 0); -- cgit v1.1