Permalink
Browse files

Fixing bug where sometimes key($data[0]) returned empty string instea…

…d of first key in array
  • Loading branch information...
1 parent f7a113d commit 4685daf299bbc83ac297662f479f432edf04c353 @lorenzo lorenzo committed Nov 12, 2009
Showing with 0 additions and 1 deletion.
  1. +0 −1 cake/libs/model/model.php
@@ -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;
}

0 comments on commit 4685daf

Please sign in to comment.