From 3a47225e843efcaa5de1b119d9310239cda77567 Mon Sep 17 00:00:00 2001 From: Dieter Adriaenssens Date: Wed, 25 Sep 2013 19:48:30 +0200 Subject: [PATCH] first check if REQUEST var exists --- libraries/rte/rte_routines.lib.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libraries/rte/rte_routines.lib.php b/libraries/rte/rte_routines.lib.php index 21fd0a8a1c..12ce2fbece 100644 --- a/libraries/rte/rte_routines.lib.php +++ b/libraries/rte/rte_routines.lib.php @@ -1134,17 +1134,17 @@ function PMA_RTN_getQueryFromRequest() $warned_about_name = false; $warned_about_length = false; - $item_param_name = $_REQUEST['item_param_name']; - $item_param_type = $_REQUEST['item_param_type']; - $item_param_length = $_REQUEST['item_param_length']; - - if ( ! empty($item_param_name) - && ! empty($item_param_type) - && ! empty($item_param_length) - && is_array($item_param_name) - && is_array($item_param_type) - && is_array($item_param_length) + if ( ! empty($_REQUEST['item_param_name']) + && ! empty($_REQUEST['item_param_type']) + && ! empty($_REQUEST['item_param_length']) + && is_array($_REQUEST['item_param_name']) + && is_array($_REQUEST['item_param_type']) + && is_array($_REQUEST['item_param_length']) ) { + $item_param_name = $_REQUEST['item_param_name']; + $item_param_type = $_REQUEST['item_param_type']; + $item_param_length = $_REQUEST['item_param_length']; + for ($i=0; $i < count($item_param_name); $i++) { if (! empty($item_param_name[$i]) && ! empty($item_param_type[$i])