diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-03-19 01:41:57 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-19 01:41:57 +0000 |
| commit | 03877250f2447a9edc5ba210125f6d11c2fbd1b4 (patch) | |
| tree | e1f3e0ccd6813251df8affe1c9eeeea1fc4c616f /kohana/libraries/ORM.php | |
| parent | ccb02b001f96f743e73a1b4a31b5e7053814c642 (diff) | |
Updated kohana to r4091
Diffstat (limited to 'kohana/libraries/ORM.php')
| -rw-r--r-- | kohana/libraries/ORM.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kohana/libraries/ORM.php b/kohana/libraries/ORM.php index fbbe9b92..1984b933 100644 --- a/kohana/libraries/ORM.php +++ b/kohana/libraries/ORM.php @@ -1285,7 +1285,8 @@ class ORM_Core { */ protected function load_type($column, $value) { - if (is_object($value) OR is_array($value) OR ! isset($this->table_columns[$column])) + $type = gettype($value); + if ($type == 'object' OR $type == 'array' OR ! isset($this->table_columns[$column])) return $value; // Load column data |
