mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 12:04:09 +02:00
fix: php errors (notices) (#3115)
This commit is contained in:
@@ -498,13 +498,15 @@ EOD;
|
||||
break;
|
||||
case 'table':
|
||||
$table = '<table>';
|
||||
$theaders = $content['header'];
|
||||
$tr = '<tr>';
|
||||
foreach ($theaders as $header) {
|
||||
$tr .= '<th>' . $header . '</th>';
|
||||
$theaders = $content['header'] ?? null;
|
||||
if ($theaders) {
|
||||
$tr = '<tr>';
|
||||
foreach ($theaders as $header) {
|
||||
$tr .= '<th>' . $header . '</th>';
|
||||
}
|
||||
$tr .= '</tr>';
|
||||
$table .= $tr;
|
||||
}
|
||||
$tr .= '</tr>';
|
||||
$table .= $tr;
|
||||
$rows = $content['rows'];
|
||||
foreach ($rows as $row) {
|
||||
$tr = '<tr>';
|
||||
|
Reference in New Issue
Block a user