fuel/core

Using Mysqli driver count causes error

Opened this issue · 2 comments

Fuel version 1.8.1.4

when using Mysqli Deiver got a error in php7.2.

Fuel\Core\PhpErrorException [ Warning ]:
count(): Parameter must be an array or an object that implements Countable

I think the following is correct.

$this->_total_rows = count($this->_result);

- $this->_total_rows = count($this->_result);
+ $this->_total_rows = count($this->_results);

0a7931b
Fuel version 1.9 is already fixed.

I'll push it as a 1.8.1.5 hotfix later. Thanks for reminding me.

Done.