Skip to content

Commit

Permalink
Extra protection.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Feb 25, 2011
1 parent a091302 commit 765c094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/datasources/dbo_source.php
Expand Up @@ -322,7 +322,7 @@ function value($data, $column = null) {
array(&$this, 'value'),
$data, array_fill(0, count($data), $column)
);
} elseif (is_object($data) && isset($data->type)) {
} elseif (is_object($data) && isset($data->type, $data->type)) {
if ($data->type == 'identifier') {
return $this->name($data->value);
} elseif ($data->type == 'expression') {
Expand Down

0 comments on commit 765c094

Please sign in to comment.