mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
0597a0ee70
commit
e6cceba47f
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue