Changeset 2710
- Timestamp:
- 05/28/2008 05:37:15 PM (6 months ago)
- Location:
- releases/2.1.2/system/libraries/drivers/Database
- Files:
-
- 3 modified
-
Mysqli.php (modified) (3 diffs)
-
Pdosqlite.php (modified) (3 diffs)
-
Pgsql.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
releases/2.1.2/system/libraries/drivers/Database/Mysqli.php
r1931 r2710 224 224 if ($this->fetch_type == 'fetch_object') 225 225 { 226 $this->return_type = class_exists($type, FALSE) ? $type : 'stdClass';226 $this->return_type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 227 227 } 228 228 else … … 250 250 // NOTE - The class set by $type must be defined before fetching the result, 251 251 // autoloading is disabled to save a lot of stupid overhead. 252 $type = class_exists($type, FALSE) ? $type : 'stdClass';252 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 253 253 } 254 254 else … … 264 264 if ($fetch == 'fetch_object') 265 265 { 266 $type = class_exists($type, FALSE) ? $type : 'stdClass';266 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 267 267 } 268 268 } -
releases/2.1.2/system/libraries/drivers/Database/Pdosqlite.php
r2412 r2710 397 397 if ($this->fetch_type == PDO::FETCH_OBJ) 398 398 { 399 $this->return_type = class_exists($type, FALSE) ? $type : 'stdClass';399 $this->return_type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 400 400 } 401 401 else … … 422 422 // NOTE - The class set by $type must be defined before fetching the result, 423 423 // autoloading is disabled to save a lot of stupid overhead. 424 $type = class_exists($type, FALSE) ? $type : 'stdClass';424 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 425 425 } 426 426 else … … 436 436 if ($fetch == PDO::FETCH_OBJ) 437 437 { 438 $type = class_exists($type, FALSE) ? $type : 'stdClass';438 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 439 439 } 440 440 } -
releases/2.1.2/system/libraries/drivers/Database/Pgsql.php
r2205 r2710 392 392 if ($this->fetch_type == 'pg_fetch_object') 393 393 { 394 $this->return_type = class_exists($type, FALSE) ? $type : 'stdClass';394 $this->return_type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 395 395 } 396 396 else … … 418 418 // NOTE - The class set by $type must be defined before fetching the result, 419 419 // autoloading is disabled to save a lot of stupid overhead. 420 $type = class_exists($type, FALSE) ? $type : 'stdClass';420 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 421 421 } 422 422 else … … 432 432 if ($fetch == 'pg_fetch_object') 433 433 { 434 $type = class_exists($type, FALSE) ? $type : 'stdClass';434 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 435 435 } 436 436 }
