From 964c612a67021aca27d08279217506da41fa1147 Mon Sep 17 00:00:00 2001 From: Dag Date: Wed, 20 Sep 2023 02:53:18 +0200 Subject: [PATCH] fix notice --- bridges/CodebergBridge.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bridges/CodebergBridge.php b/bridges/CodebergBridge.php index 8377588557e..c13ff004c4f 100644 --- a/bridges/CodebergBridge.php +++ b/bridges/CodebergBridge.php @@ -181,7 +181,12 @@ private function extractCommits($html) $item['title'] = $message->find('span.message-wrapper', 0)->plaintext; $item['uri'] = $tr->find('td.sha', 0)->find('a', 0)->href; $item['author'] = $tr->find('td.author', 0)->plaintext; - $item['timestamp'] = $tr->find('td', 3)->find('span', 0)->title; + + $var = $tr->find('td', 3); + $var1 = $var->find('span', 0); + if ($var1) { + $item['timestamp'] = $var1->title; + } if ($message->find('pre.commit-body', 0)) { $message->find('pre.commit-body', 0)->style = '';