Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit eeff950cf956837c24c8a8d114fb8c93f67c3866 1 parent 335f355
@ADmad ADmad authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Model/Model.php
View
2  lib/Cake/Model/Model.php
@@ -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') {
Please sign in to comment.
Something went wrong with that request. Please try again.