Skip to content

Commit

Permalink
Merge pull request #34893 from owncloud/isAttributeInLog
Browse files Browse the repository at this point in the history
use array_key_exists and not isset for the case the value is NULL
  • Loading branch information
individual-it authored Mar 26, 2019
2 parents 67c4ba1 + d556c05 commit 5f9a17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/acceptance/features/bootstrap/Logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private function assertLogFileContainsAtLeastOneEntryMatchingTable(
//don't check empty table entries
continue;
}
if (!isset($logEntry[$attribute])) {
if (!\array_key_exists($attribute, $logEntry)) {
//this line does not have the attribute we are looking for
$foundLine = false;
break;
Expand Down

0 comments on commit 5f9a17a

Please sign in to comment.