From 8727fb3ba8a28da48c71bdd39166b9aeb3c3d986 Mon Sep 17 00:00:00 2001 From: wn_ Date: Mon, 8 Jan 2024 22:46:13 +0000 Subject: Clean up some unused variables. This is essentially https://gitlab.tt-rss.org/wn/tt-rss/-/commit/1ccc0c8c1af04dd9654b585c6d07e3a75d944a0c without the renames and some other things related to Psalm. --- classes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Article.php') diff --git a/classes/Article.php b/classes/Article.php index 0b446479b..c496ea131 100644 --- a/classes/Article.php +++ b/classes/Article.php @@ -606,7 +606,7 @@ class Article extends Handler_Protected { foreach ($elems as $e) { if ($e->nodeName == "iframe") { $matches = []; - if ($rrr = preg_match("/\/embed\/([\w-]+)/", $e->getAttribute("src"), $matches)) { + if (preg_match("/\/embed\/([\w-]+)/", $e->getAttribute("src"), $matches)) { $article_image = "https://img.youtube.com/vi/" . $matches[1] . "/hqdefault.jpg"; $article_stream = "https://youtu.be/" . $matches[1]; $article_kind = Article::ARTICLE_KIND_YOUTUBE; -- cgit v1.2.3