mirror of
https://github.com/friendica/friendica
synced 2025-12-07 10:07:11 +01:00
Fix static analysis error in Content\Text\NPF
- Using explicit DOMAttr->name property instead of expecting the array key to be the attribute name
This commit is contained in:
parent
9e79c6574a
commit
4afcfce6ad
1 changed files with 2 additions and 2 deletions
|
|
@ -321,8 +321,8 @@ class NPF
|
|||
list($npf, $text, $formatting) = self::routeChildren($element, $uri_id, false, $callstack, $npf, $text, $formatting);
|
||||
|
||||
$attributes = [];
|
||||
foreach ($element->attributes as $key => $attribute) {
|
||||
$attributes[$key] = trim($attribute->value);
|
||||
foreach ($element->attributes as $attribute) {
|
||||
$attributes[$attribute->name] = trim($attribute->value);
|
||||
}
|
||||
if (!empty($attributes['href'])) {
|
||||
$formatting[] = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue