Permalink
Browse files

Fix strict error with 2.6 code.

  • Loading branch information...
markstory committed Jan 20, 2015
1 parent 3078a1e commit 511ee1f776774c105d4f9ba8fde9de85d19788d6
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Model/Datasource/Database/Mysql.php
@@ -798,8 +798,8 @@ public function column($real) {
/**
* {@inheritDoc}
*/
public function value($data, $column = null) {
$value = parent::value($data, $column);
public function value($data, $column = null, $null = true) {
$value = parent::value($data, $column, $null);
if (is_numeric($value) && substr($column, 0, 3) === 'set') {
return $this->_connection->quote($value);
}

0 comments on commit 511ee1f

Please sign in to comment.