Skip to content

Commit

Permalink
改进
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Aug 14, 2024
1 parent bf63161 commit ed5b4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/think/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@ protected function getDataSet(array $data, $key): array
}
// user.*.id
[$key, $column] = explode('.*.', $key);
return array_column($this->getRecursiveData($data, $key), $column);
return array_column($this->getRecursiveData($data, $key) ?: [], $column);
}

return [$this->getDataValue($data, $key)];
Expand Down

0 comments on commit ed5b4e7

Please sign in to comment.