Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whoops vermeiden - Call to a member function getFileName() on null #549

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tbaddade
Copy link
Member

No description provided.

@tbaddade tbaddade requested a review from gharlan June 20, 2023 13:00
@MC-PMOE
Copy link

MC-PMOE commented Oct 8, 2024

Moin zusammen! Bin gerade auch über den Fehler gestolpert. Spricht etwas dagegen den PR einzuspielen?

@@ -311,8 +311,8 @@ public function sendSitemap($domain = '')
"\n".'<url>'.
"\n\t".'<loc>'.rex_yrewrite::getFullPath($path[$clang_id]).'</loc>'.
"\n\t".'<lastmod>'.date(DATE_W3C, $article->getUpdateDate()).'</lastmod>'; // Serverzeitzone passt
if ($article->getValue(self::$meta_image_field)) {
$media = rex_media::get((string) $article->getValue(self::$meta_image_field));
$media = rex_media::get((string) $article->getValue(self::$meta_image_field));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ich denke man sollte rex_media::get nur aufrufen wenn $article->getValue(self::$meta_image_field) einen wert liefert (da man sonst einen unnötigen sql query macht)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants