Skip to content

Commit

Permalink
Merge pull request #1475 from Soean/1474
Browse files Browse the repository at this point in the history
CLI: Fix PHP Type error
  • Loading branch information
kasparsd authored Jun 17, 2024
2 parents 0336294 + c3a0b9c commit 87610e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function query( $args, $assoc_args ) {

// Catch any fields missing in records.
foreach ( $fields as $field ) {
if ( ! array_key_exists( $field, $record ) ) {
if ( ! property_exists( $record, $field ) ) {
$record->$field = null;
}
}
Expand Down

0 comments on commit 87610e2

Please sign in to comment.