Fix undefined variable/wrong parameter count/unknown functions
This commit is contained in:
+1
-1
@@ -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');
|
||||
|
||||
+5
-5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user