Use of an undeclared variable

kiamlaluno - November 6, 2008 - 02:09
Project:Integrated Metatags
Version:6.x-1.0-beta5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

int_meta_show_tags() calls itself with the value of a variable which is not before declared, and to which is not given any values; the passed value is not even needed, as the function declares just one argument, in its formal parameters list.

<?php
function int_meta_show_tags($tag) {
  static
$types = array();
  if (
is_array($tag)) {
   
// Cycle through each tag individually
   
foreach ($tag as $curr) {
     
int_meta_show_tags($curr, $empty);
    }
   
// ...
}
?>

#1

fractile81 - November 7, 2008 - 02:47
Status:active» fixed

This has been fixed internally and will be in the next release.

#2

System Message - November 21, 2008 - 02:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.