Permalink
Browse files

Removing default null value for $data parameter. Refs GH pull request #…

  • Loading branch information...
ADmad committed May 11, 2012
1 parent 335f355 commit eeff950cf956837c24c8a8d114fb8c93f67c3866
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Model.php
View
@@ -1993,7 +1993,7 @@ protected function _prepareUpdateFields($data) {
* @link http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveassociated-array-data-null-array-options-array
* @link http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveall-array-data-null-array-options-array
*/
- public function saveAll($data = null, $options = array()) {
+ public function saveAll($data, $options = array()) {
$options = array_merge(array('validate' => 'first'), $options);
if (Hash::numeric(array_keys($data))) {
if ($options['validate'] === 'only') {

0 comments on commit eeff950

Please sign in to comment.