Skip to content

Commit

Permalink
article missing error wird abgefangen
Browse files Browse the repository at this point in the history
  • Loading branch information
dergel committed Oct 10, 2024
1 parent 9b24497 commit e4ed17a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pages/meta_generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,14 @@
$content .= '<td>' . ($row->getValue('done') === 1 ? rex_i18n::msg("yes") : rex_i18n::msg("no")) . '</td>';
$article = rex_article::get($row->getValue('article_id'), $row->getValue('clang'));
$articleName = $article->getName();
$articleLink = rex_url::backendPage('content/edit',
['article_id' => $row->getValue('article_id'), 'clang' => $row->getValue('clang'), 'mode' => 'edit']);
$content .= '<td><a href="' . $articleLink . '">' . $articleName . '</a></td>';
if (null !== $article) {
$articleName = $article->getName();
$articleLink = rex_url::backendPage('content/edit',
['article_id' => $row->getValue('article_id'), 'clang' => $row->getValue('clang'), 'mode' => 'edit']);
$content .= '<td><a href="' . $articleLink . '">' . $articleName . '</a></td>';
} else {
$content .= '<td>' . rex_i18n::msg('ff_gpt_tools_article_not_found') . '</td>';
}
$content .= '<td>' . $row->getValue('date') . '</td>';
$content .= '<td>' . $row->getValue('meta_description') . '</td>';
$content .= '<td>' . rex_clang::get($row->getValue('clang'))->getName() . '</td>';
Expand Down

0 comments on commit e4ed17a

Please sign in to comment.