Update app_defaults.php
Ensure the values are reset after each loop through local_stream.con.xml attributes.
This commit is contained in:
@@ -64,6 +64,7 @@
|
|||||||
$name = $p['@attributes']['name'];
|
$name = $p['@attributes']['name'];
|
||||||
$name = str_replace("-", "_", $name);
|
$name = str_replace("-", "_", $name);
|
||||||
$$name = $p['@attributes']['value'];
|
$$name = $p['@attributes']['value'];
|
||||||
|
$attributes[] = $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
//insert the data into the database
|
//insert the data into the database
|
||||||
@@ -94,6 +95,11 @@
|
|||||||
//echo $sql."\n";
|
//echo $sql."\n";
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
unset($sql);
|
unset($sql);
|
||||||
|
|
||||||
|
//unset the attribute variables
|
||||||
|
foreach ($attributes as $value) {
|
||||||
|
unset($$value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//rename the file
|
//rename the file
|
||||||
@@ -104,4 +110,4 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user