From 6c9aadc78b9cf6d1e974b5480f7dc7241def3321 Mon Sep 17 00:00:00 2001 From: secretr Date: Mon, 22 Nov 2010 20:45:53 +0000 Subject: [PATCH] warnings removal --- e107_core/shortcodes/batch/bbcode_shortcodes.php | 5 +++-- e107_handlers/form_handler.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/e107_core/shortcodes/batch/bbcode_shortcodes.php b/e107_core/shortcodes/batch/bbcode_shortcodes.php index 78a767fcf..b7bffdb2b 100644 --- a/e107_core/shortcodes/batch/bbcode_shortcodes.php +++ b/e107_core/shortcodes/batch/bbcode_shortcodes.php @@ -97,9 +97,10 @@ class bbcode_shortcodes if (!empty($eplug_bb)) { - foreach($eplug_bb as $key=>$val) // allow plugins to plug into it. + foreach($eplug_bb as $val) // allow plugins to plug into it. { - extract($val); + if(!$val) continue; + extract($val); // echo "$onclick $onclick_var $helptext $icon
"; $bbcode[$name] = array($onclick,$onclick_var,$helptext,$icon,$function,$function_var); $iconpath[$name] = $icon; diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 403d98ab4..713858b1c 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -1533,10 +1533,10 @@ class e_form * @param string $key * @param mixed $value * @param array $attributes field attributes including render parameters, element options - see e_admin_ui::$fields for required format - * #param array $required_data required array as defined in e_model/validator + * #param array (under construction) $required_data required array as defined in e_model/validator * @return string */ - function renderElement($key, $value, $attributes, $required_data) + function renderElement($key, $value, $attributes, $required_data = array()) { $parms = vartrue($attributes['writeParms'], array()); $tp = e107::getParser();