1
0
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:
Dag
2022-10-26 00:47:45 +02:00
committed by GitHub
parent 8795cb252f
commit 52af2ae34c
9 changed files with 33 additions and 20 deletions

View File

@@ -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>';