summaryrefslogtreecommitdiff
path: root/classes/OPML.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/OPML.php')
-rw-r--r--classes/OPML.php2
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]);