Skip to content
Permalink
Browse files

Casting

  • Loading branch information...
lorenzo committed Jan 8, 2014
1 parent 71171fd commit f803084d430cf91886c55b724ad651d9a79a0d6e
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cake/ORM/Query.php
@@ -821,7 +821,7 @@ public function count() {
if ($this->clause('group') === [] && $this->mapReduce() === []) {
$this->select(['count' => $this->func()->count('*')], true)
->hydrate(false);
return $this->first()['count'];
return (int)$this->first()['count'];
}
$results = $this->execute();
return count($results);

0 comments on commit f803084

Please sign in to comment.
You can’t perform that action at this time.