Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Oct 29, 2018
1 parent 59985ac commit b507752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/think/model/relation/HasOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function relationCount($result, $closure, $aggregate = 'count', $field =

if ($closure) {
$return = $closure($this->query);
if ($resturn && is_string($return)) {
if ($return && is_string($return)) {
$name = $return;
}
}
Expand Down

0 comments on commit b507752

Please sign in to comment.