This commit is contained in:
Momchil Bozhinov
2021-02-16 12:13:03 +02:00
parent f585abbce2
commit 34136468c7
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
<?php
require_once("cbsd.php");
class Config
{
/* Список языков, используемых в проекте */

View File

@@ -13,7 +13,7 @@ class Db {
*/
function __construct($place='base', $database='', $connect = null){
if (!is_null($connect)){
if (is_null($connect)){
list($file_name, $connect) = $this->prep_connect($place, $database);
if(is_null($file_name) || !file_exists($file_name)){
@@ -38,6 +38,7 @@ class Db {
$this->error=true;
$this->error_message=$e->getMessage(); //'DB Error';
}
}
private function prep_connect($place, $database){