Make constructor of db helper class public.

This fixes:
  PHP Fatal error:  Access level to uDb::__construct() must be public (as in class mysqli) in <www-root>/ulogger-server/helpers/db.php on line 84
This commit is contained in:
Armin Fisslthaler 2017-04-19 21:35:29 +02:00
parent e52c4109d8
commit 8f408251c5

View File

@ -45,7 +45,7 @@
* @param string $pass * @param string $pass
* @param string $name * @param string $name
*/ */
private function __construct($host, $user, $pass, $name) { public function __construct($host, $user, $pass, $name) {
parent::__construct($host, $user, $pass, $name); parent::__construct($host, $user, $pass, $name);
if ($this->connect_error) { if ($this->connect_error) {
if (defined('headless')) { if (defined('headless')) {
@ -82,4 +82,4 @@
return self::$tables[$name]; return self::$tables[$name];
} }
} }
?> ?>