Skip to content

Commit

Permalink
Fixing bug where sometimes key($data[0]) returned empty string instea…
Browse files Browse the repository at this point in the history
…d of first key in array
  • Loading branch information
lorenzo committed Dec 11, 2009
1 parent f7a113d commit 4685daf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cake/libs/model/model.php
Expand Up @@ -1136,7 +1136,6 @@ function field($name, $conditions = null, $order = null) {
if (!empty($data[0])) {
$name = key($data[0]);
return $data[0][$name];
}
} else {
return false;
}
Expand Down

0 comments on commit 4685daf

Please sign in to comment.