jpfuentes2/php-activerecord — pull request #396 by koenpunt (2014-01-24 14:02:52+00:00)
Title: Fix error when using find with an empty array argument

When a empty array for a `find` (`Model::find(['conditions' => ['id IN (?)', []])`) was given, it would trigger an error: `array_fill(): Number of elements must be positive`.

This prevents that error and will result in a `ActiveRecord\DatabaseException` which can be handled properly.