mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 08:45:56 +00:00
check a few more php8 warnings
This commit is contained in:
@@ -103,13 +103,15 @@ class Af_RedditImgur extends Plugin {
|
||||
|
||||
if (isset($data["media_metadata"])) {
|
||||
foreach ($data["media_metadata"] as $media) {
|
||||
$media_url = htmlspecialchars_decode($media["s"]["u"]);
|
||||
if (!empty($media["s"]["u"])) {
|
||||
$media_url = htmlspecialchars_decode($media["s"]["u"]);
|
||||
|
||||
Debug::log("found media_metadata (gallery): $media_url", Debug::$LOG_VERBOSE);
|
||||
Debug::log("found media_metadata (gallery): $media_url", Debug::$LOG_VERBOSE);
|
||||
|
||||
if ($media_url) {
|
||||
$this->handle_as_image($doc, $anchor, $media_url);
|
||||
$found = 1;
|
||||
if ($media_url) {
|
||||
$this->handle_as_image($doc, $anchor, $media_url);
|
||||
$found = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user