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 |
Jump to:
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
This has been fixed internally and will be in the next release.
#2
Automatically closed -- issue fixed for two weeks with no activity.