mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:10:11 +00:00
Fix further notes and warnings
This commit is contained in:
parent
d62cd5defc
commit
100dfea524
2 changed files with 13 additions and 6 deletions
|
@ -1061,12 +1061,12 @@ class GServer
|
|||
$attr = [];
|
||||
if ($node->attributes->length) {
|
||||
foreach ($node->attributes as $attribute) {
|
||||
$attribute->value = @trim($attribute->value);
|
||||
if (empty($attribute->value)) {
|
||||
$value = trim($attribute->value);
|
||||
if (empty($value)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$attr[$attribute->name] = $attribute->value;
|
||||
$attr[$attribute->name] = $value;
|
||||
}
|
||||
|
||||
if (empty($attr['name']) || empty($attr['content'])) {
|
||||
|
@ -1117,12 +1117,12 @@ class GServer
|
|||
$attr = [];
|
||||
if ($node->attributes->length) {
|
||||
foreach ($node->attributes as $attribute) {
|
||||
$attribute->value = @trim($attribute->value);
|
||||
if (empty($attribute->value)) {
|
||||
$value = trim($attribute->value);
|
||||
if (empty($value)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$attr[$attribute->name] = $attribute->value;
|
||||
$attr[$attribute->name] = $value;
|
||||
}
|
||||
|
||||
if (empty($attr['property']) || empty($attr['content'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue