mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 20:42:42 +00:00
Fixing bug where sometimes key($data[0]) returned empty string instead of first key in array
This commit is contained in:
parent
f7a113d2b0
commit
4685daf299
1 changed files with 0 additions and 1 deletions
|
@ -1136,7 +1136,6 @@ class Model extends Overloadable {
|
|||
if (!empty($data[0])) {
|
||||
$name = key($data[0]);
|
||||
return $data[0][$name];
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue