"Fixing Model::set() when null passed to first param, this was creating an empty keyed array"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6102 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-12-02 22:23:29 +00:00
parent 498d05ecd3
commit 738449ee50

View file

@ -785,6 +785,9 @@ class Model extends Overloadable {
* @access public
*/
function set($one, $two = null) {
if (!$one) {
return;
}
if (is_object($one)) {
$one = Set::reverse($one);
}