Fixing bug where sometimes key($data[0]) returned empty string instead of first key in array

This commit is contained in:
José Lorenzo Rodríguez 2009-11-11 23:47:23 -04:30
parent f7a113d2b0
commit 4685daf299

View file

@ -1136,7 +1136,6 @@ class Model extends Overloadable {
if (!empty($data[0])) {
$name = key($data[0]);
return $data[0][$name];
}
} else {
return false;
}