summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/rssfuncs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 55c0baa4f..193194b50 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -998,7 +998,7 @@
foreach ($labels as $label) {
$caption = $label["caption"];
- if (preg_match("/\b$caption\b/i", "$tags_str " . strip_tags($entry_content) . " $entry_title")) {
+ if ($caption && preg_match("/\b$caption\b/i", "$tags_str " . strip_tags($entry_content) . " $entry_title")) {
if (!labels_contains_caption($article_labels, $caption)) {
label_add_article($link, $entry_ref_id, $caption, $owner_uid);
}