Skip to content

Commit 18455d6

Browse files
committed
Fixing error during update evaluation
1 parent e7705d7 commit 18455d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema/Traits/Custom_Table_Query_Methods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function update_many( array $entries ): bool {
392392
$results[] = $database::query( $query );
393393
}
394394

395-
$all_good = count( array_filter( $results ) ) === count( $results );
395+
$all_good = count( array_filter( $results, static fn( $result ) => $result !== false ) ) === count( $results );
396396

397397
if ( ! $all_good ) {
398398
$database::rollBack();

0 commit comments

Comments
 (0)