mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Fix undefined variable/wrong parameter count/unknown functions
This commit is contained in:
parent
4b5894817e
commit
2978b1eef0
16 changed files with 36 additions and 33 deletions
|
@ -292,11 +292,11 @@ class XML
|
|||
// Go through the tags.
|
||||
$repeated_tag_index = array(); // Multiple tags with same name will be turned into an array
|
||||
foreach ($xml_values as $data) {
|
||||
unset($attributes, $value); // Remove existing values, or there will be trouble
|
||||
|
||||
// This command will extract these variables into the foreach scope
|
||||
// tag(string), type(string), level(int), attributes(array).
|
||||
extract($data); // We could use the array by itself, but this cooler.
|
||||
$tag = $data['tag'];
|
||||
$type = $data['type'];
|
||||
$level = $data['level'];
|
||||
$attributes = isset($data['attributes']) ? $data['attributes'] : null;
|
||||
$value = isset($data['value']) ? $data['value'] : null;
|
||||
|
||||
$result = array();
|
||||
$attributes_data = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue