diff --git a/lib/Cake/Model/Datasource/Database/Sqlserver.php b/lib/Cake/Model/Datasource/Database/Sqlserver.php index 788885dbc..7fb0225ad 100644 --- a/lib/Cake/Model/Datasource/Database/Sqlserver.php +++ b/lib/Cake/Model/Datasource/Database/Sqlserver.php @@ -571,7 +571,7 @@ class Sqlserver extends DboSource { * @return string Quoted and escaped data */ public function value($data, $column = null) { - if (is_array($data) || is_object($data)) { + if ($data === null || is_array($data) || is_object($data)) { return parent::value($data, $column); } elseif (in_array($data, array('{$__cakeID__$}', '{$__cakeForeignKey__$}'), true)) { return $data;