mirror of
https://github.com/friendica/friendica
synced 2025-05-02 12:24:24 +02: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
|
@ -64,7 +64,7 @@ class Lock
|
|||
$file = $temp.'/'.$fn_name.'.sem';
|
||||
|
||||
if (!file_exists($file)) {
|
||||
file_put_contents($file, $function);
|
||||
file_put_contents($file, $fn_name);
|
||||
}
|
||||
|
||||
return ftok($file, 'f');
|
||||
|
|
|
@ -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