From f9b5d419cdc1bf182c2ce2afa884d74dfca9b21e Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Sat, 26 Feb 2011 14:06:50 -0300 Subject: [PATCH] Fixed wrong attribute name. --- cake/libs/model/datasources/dbo_source.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index c391eed93..7af467027 100755 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -321,7 +321,7 @@ class DboSource extends DataSource { array(&$this, 'value'), $data, array_fill(0, count($data), $column) ); - } elseif (is_object($data) && isset($data->type, $data->type)) { + } elseif (is_object($data) && isset($data->type, $data->value)) { if ($data->type == 'identifier') { return $this->name($data->value); } elseif ($data->type == 'expression') {