Changeset 2575
- Timestamp:
- 04/25/08 14:09:17 (4 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/drivers/Database/Mysql.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Database/Mysql.php
r2353 r2575 413 413 // NOTE - The class set by $type must be defined before fetching the result, 414 414 // autoloading is disabled to save a lot of stupid overhead. 415 if ($this->fetch_type == 'mysql_fetch_object') 416 { 417 $this->return_type = class_exists($type, FALSE) ? $type : 'stdClass'; 415 if ($this->fetch_type == 'mysql_fetch_object' AND $object === TRUE) 416 { 417 if (is_string($type)) 418 { 419 $loaded = Kohana::auto_load($type); 420 $this->return_type = $loaded ? $type : 'stdClass'; 421 } 422 else 423 { 424 $this->return_type = 'stdClass'; 425 } 418 426 } 419 427 else
