mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
"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:
parent
498d05ecd3
commit
738449ee50
1 changed files with 3 additions and 0 deletions
|
@ -785,6 +785,9 @@ class Model extends Overloadable {
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function set($one, $two = null) {
|
function set($one, $two = null) {
|
||||||
|
if (!$one) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (is_object($one)) {
|
if (is_object($one)) {
|
||||||
$one = Set::reverse($one);
|
$one = Set::reverse($one);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue