Fixing warnings in Model::find('all') (Ticket #3712)

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6139 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-12-10 03:28:21 +00:00
parent 0597a0ee70
commit e6cceba47f

View file

@ -1493,7 +1493,7 @@ class Model extends Overloadable {
* @return array Array of records
* @access public
*/
function find($conditions = null, $fields = null, $order = null, $recursive = null) {
function find($conditions = null, $fields = array(), $order = null, $recursive = null) {
if (!is_string($conditions) || (is_string($conditions) && !array_key_exists($conditions, $this->__findMethods))) {
$type = 'first';
$query = array_merge(compact('conditions', 'fields', 'order', 'recursive'), array('limit' => 1));