Merge pull request #5097 from JakubOnderka/patch-18

chg: [feed] Break loop when match is found
pull/5177/head
Andras Iklody 2019-09-16 09:15:37 +02:00 committed by GitHub
commit d656c2b318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -502,6 +502,7 @@ class Feed extends AppModel
foreach ($filterRules[$field][$prefix] as $temp) {
if (stripos($object['name'], $temp) !== false) {
$found = true;
break 2;
}
}
}
@ -515,9 +516,6 @@ class Feed extends AppModel
}
}
}
if (!$filterRules) {
return true;
}
return true;
}