[web-php] master: Fallback to standard link if a news entries doesn't have a 'newsImage'

From: Date: Wed, 21 Jan 2026 15:16:56 +0000
Subject: [web-php] master: Fallback to standard link if a news entries doesn't have a 'newsImage'
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-33535@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2026-01-21T15:10:09Z Commit: https://github.com/php/web-php/commit/cfe41a81dd41857b5b443a49577a40062e932817 Raw diff: https://github.com/php/web-php/commit/cfe41a81dd41857b5b443a49577a40062e932817.diff Fallback to standard link if a news entries doesn't have a 'newsImage' Changed paths: M conferences/index.php Diff: diff --git a/conferences/index.php b/conferences/index.php index 3718ba5baf..a61cd2acf4 100644 --- a/conferences/index.php +++ b/conferences/index.php @@ -33,7 +33,7 @@ $content .= '</div>'; $content .= '</div>'; - $panels .= sprintf('<p class="panel"><a href="%s">%s</a></p>', $entry["newsImage"]["link"], $entry["title"]); + $panels .= sprintf('<p class="panel"><a href="%s">%s</a></p>', $entry["newsImage"]["link"] ?? $link, $entry["title"]); } $content .= "</div>";

« previous php.webmaster (#33535) next »