rssfuncs: do not try to match on empty label
This commit is contained in:
parent
9e7f1f12f4
commit
9811276da7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue