Fixing issue with magic field values ({$__cake_ID__}) being quoted twice

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3464 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-09-11 07:09:14 +00:00
parent 198dab8a46
commit 93f7dd32ca

View file

@ -114,6 +114,8 @@ class DboSource extends DataSource {
$out[$keys[$i]] = $this->value($data[$keys[$i]]);
}
return $out;
} elseif (in_array($data, array('{$__cakeID__$}', '{$__cakeForeignKey__$}'))) {
return $data;
} else {
return null;
}