diff options
| author | wn_ <invalid@email.com> | 2024-11-23 18:23:49 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-11-24 13:59:29 +0000 |
| commit | 667528d5b927f0f284a067b0e24c9ca7f26c28a4 (patch) | |
| tree | f28c7ece3584a7852b6562020246b1de6167774e /classes/OPML.php | |
| parent | 53fee911e6a39a5c8504d03d1f114a131d00784c (diff) | |
Use PHP 8 'str_' functions.
A few more characters in some places, but helps with readability.
Diffstat (limited to 'classes/OPML.php')
| -rw-r--r-- | classes/OPML.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/OPML.php b/classes/OPML.php index e2ec6a7ff..1debc8623 100644 --- a/classes/OPML.php +++ b/classes/OPML.php @@ -217,7 +217,7 @@ class OPML extends Handler_Protected { $match = []; foreach (json_decode($tmp_line["match_on"], true) as $feed_id) { - if (strpos($feed_id, "CAT:") === 0) { + if (str_starts_with($feed_id, "CAT:")) { $feed_id = (int)substr($feed_id, 4); if ($feed_id) { array_push($match, [Feeds::_get_cat_title($feed_id), true, false]); |