mirror of
https://github.com/friendica/friendica
synced 2025-05-06 15:44:11 +02:00
Remove entries from queue / relay detection
This commit is contained in:
parent
a676cf8bed
commit
7dcd02938d
4 changed files with 40 additions and 12 deletions
|
@ -141,9 +141,9 @@ class XML
|
|||
* @param string $elementname Name of the XML element of the target
|
||||
* @return void
|
||||
*/
|
||||
public static function copy(&$source, &$target, string $elementname)
|
||||
public static function copy(&$source, &$target, $elementname)
|
||||
{
|
||||
if (is_string($source)) {
|
||||
if (count($source->children()) == 0) {
|
||||
$target->addChild($elementname, self::escape($source));
|
||||
} else {
|
||||
$child = $target->addChild($elementname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue