Skip to content

Commit

Permalink
Use empty to check for empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBaker committed Jul 14, 2019
1 parent 6500128 commit 36135a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Calculation/Statistical.php
Expand Up @@ -1155,7 +1155,7 @@ public static function COUNTIFS(...$args)
// Return value
$returnValue = 0;

if (!$arrayList) {
if (empty($arrayList)) {
return $returnValue;
}

Expand Down

0 comments on commit 36135a4

Please sign in to comment.