mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
fix: various notice fixes (#3718)
This commit is contained in:
parent
b9ec6a0eb4
commit
2172df9fa2
7 changed files with 27 additions and 5 deletions
|
@ -260,7 +260,11 @@ class CodebergBridge extends BridgeAbstract
|
|||
}
|
||||
|
||||
$item['author'] = $div->find('a.author', 0)->innertext;
|
||||
$item['timestamp'] = $div->find('span.time-since', 0)->title;
|
||||
|
||||
$timeSince = $div->find('span.time-since', 0);
|
||||
if ($timeSince) {
|
||||
$item['timestamp'] = $timeSince->title;
|
||||
}
|
||||
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue