1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-09 17:16:20 +02:00

Possible extract issue

This commit is contained in:
SecretR
2013-10-24 01:43:47 +03:00
parent 31c31c36ee
commit a29ec4735a

View File

@ -488,6 +488,8 @@ class bbcode_shortcodes extends e_shortcode
foreach($eplug_bb as $val) // allow plugins to plug into it. foreach($eplug_bb as $val) // allow plugins to plug into it.
{ {
if(!$val) continue; if(!$val) continue;
unset($onclick,$onclick_var,$helptext,$icon,$function,$function_var);
extract($val); extract($val);
// echo "$onclick $onclick_var $helptext $icon <br />"; // echo "$onclick $onclick_var $helptext $icon <br />";
$bbcode[$name] = array($onclick,$onclick_var,$helptext,$icon,$function,$function_var); $bbcode[$name] = array($onclick,$onclick_var,$helptext,$icon,$function,$function_var);
@ -495,6 +497,8 @@ class bbcode_shortcodes extends e_shortcode
else unset($iconpath[$name]); else unset($iconpath[$name]);
} }
} }
if(!$iconpath[$parm]) return '';
$pre = "\n"; $pre = "\n";
$post = "\n"; $post = "\n";
@ -511,8 +515,6 @@ class bbcode_shortcodes extends e_shortcode
$post = "</a>\n"; $post = "</a>\n";
} }
if(!$iconpath[$parm]) return '';
if($bbcode[$parm]) // default - insert text. if($bbcode[$parm]) // default - insert text.
{ {
$text = $pre; $text = $pre;