Permalink
Browse files

Fixed some constructor issues.

  • Loading branch information...
cubiclesoft committed Apr 10, 2018
1 parent 1b13787 commit 47fabcb2c984501a5e6d3676cfa1bf0670a3cab0
Showing with 4 additions and 4 deletions.
  1. +4 −4 support/db.php
@@ -1,6 +1,6 @@
<?php
// CubicleSoft generic database base class.
// (C) 2015 CubicleSoft. All Rights Reserved.
// (C) 2018 CubicleSoft. All Rights Reserved.
class CSDB
{
@@ -41,7 +41,7 @@ public function GetDisplayName()
return "";
}
public function __construct($dsn = "", $username = "", $password = "")
public function __construct($dsn = false, $username = false, $password = false, $options = array())
{
$this->numqueries = 0;
$this->totaltime = 0;
@@ -53,7 +53,7 @@ public function __construct($dsn = "", $username = "", $password = "")
$this->currdb = false;
$this->available_status = $this->IsAvailable();
if ($dsn != "") $this->Connect($dsn, $username, $password);
if ($dsn !== false) $this->Connect($dsn, $username, $password, $options);
}
public function __destruct()
@@ -481,7 +481,7 @@ protected function ProcessKeyDefinition($info)
return array("success" => false, "error" => CSDB::DB_Translate("The base class ProcessKeyDefinition() was called."), "errorcode" => "wrong_class_used");
}
// Not intended to be overridden, just accessible to the parent.
// Not intended to be overridden, just accessible to the derived class.
protected function ProcessSELECT(&$master, &$sql, &$opts, $queryinfo, $args, $subquery, $supported)
{
$sql = "SELECT";

0 comments on commit 47fabcb

Please sign in to comment.