chg: [feed] Break loop when match is found

pull/5097/head
Jakub Onderka 2019-09-03 18:04:47 +02:00 committed by GitHub
parent 3f03ceb229
commit e20fc9ce60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

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