mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:50:12 +00:00
[Scrutinizer] Fix undeclared variables in src/ (except Protocol/)
- Use dba::selectFirst to remove intermediate variables `$r` - Remove unused variable `$url_recipients` in Worker\Dellivery
This commit is contained in:
parent
2234bb92ae
commit
d419d07f73
17 changed files with 89 additions and 81 deletions
|
@ -52,6 +52,7 @@ class XML
|
|||
}
|
||||
}
|
||||
|
||||
$element = null;
|
||||
foreach ($array as $key => $value) {
|
||||
if (!isset($element) && isset($xml)) {
|
||||
$element = $xml;
|
||||
|
@ -185,12 +186,13 @@ class XML
|
|||
return(null);
|
||||
}
|
||||
|
||||
$xml_element_copy = '';
|
||||
if (!is_string($xml_element)
|
||||
&& !is_array($xml_element)
|
||||
&& (get_class($xml_element) == 'SimpleXMLElement')
|
||||
) {
|
||||
$xml_element_copy = $xml_element;
|
||||
$xml_element = get_object_vars($xml_element);
|
||||
$xml_element_copy = $xml_element;
|
||||
$xml_element = get_object_vars($xml_element);
|
||||
}
|
||||
|
||||
if (is_array($xml_element)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue