isset insetad of array key exists
Some checks failed
CI / testsuite (pgsql, 8.2, ) (push) Successful in 6m21s
CI / testsuite (mysql, 8.2, ) (push) Successful in 6m38s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 5m10s
CI / testsuite (mysql, 8.4, ) (push) Successful in 12m27s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 10m14s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 5m4s
CI / Coding Standard & Static Analysis (push) Failing after 2m48s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 7m36s
Some checks failed
CI / testsuite (pgsql, 8.2, ) (push) Successful in 6m21s
CI / testsuite (mysql, 8.2, ) (push) Successful in 6m38s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 5m10s
CI / testsuite (mysql, 8.4, ) (push) Successful in 12m27s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 10m14s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 5m4s
CI / Coding Standard & Static Analysis (push) Failing after 2m48s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 7m36s
This commit is contained in:
@@ -152,13 +152,13 @@ class ActiveLinkHelper extends Helper {
|
||||
protected function _matchesUrlFromArrayTarget(array $current, array $targetUrl) {
|
||||
foreach ($targetUrl as $targetKey => $targetValue) {
|
||||
if (is_array($targetValue)) {
|
||||
if (!in_array($current[$targetKey], $targetValue)) {
|
||||
if (!isset($current[$targetKey]) || !in_array($current[$targetKey], $targetValue)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
if (!array_key_exists($targetKey, $current) || $targetValue != $current[$targetKey]) {
|
||||
if (!isset($targetKey, $current) || $targetValue != $current[$targetKey]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user