Under development.

This commit is contained in:
Andrew McMillan 2009-06-13 11:40:36 +12:00
parent 8c8a5e2f6e
commit 2f6b7db543

View File

@ -403,11 +403,13 @@ class PdoQuery {
* will be in turn, the sql, and any positional parameters to replace into that, and will be passed to * will be in turn, the sql, and any positional parameters to replace into that, and will be passed to
* $this->Query() before returning. * $this->Query() before returning.
*/ */
function __construct( $db ) { function __construct( ) {
$this->pdb = $db; $args = func_get_args();
$this->pdb = array_shift( $args );
if ( isset($db->default_max_duration) ) { if ( isset($db->default_max_duration) ) {
$this->max_duration = $db->default_max_duration; $this->max_duration = $db->default_max_duration;
} }
$this->Query($args);
} }