Fixed errors

This commit is contained in:
Rooty 2021-09-23 03:40:07 +02:00
parent 59eb4d83e3
commit 4bc1bf0bdf

View File

@ -420,8 +420,6 @@ function datasource($POST="")
$mysqlversion = explode(" ", getModuleSetting('pdo_mysql','Client API version'));
$mysqlversion = explode(".",$mysqlversion[1]);
$mysqlversion = $mysqlversion[0];
var_dump($mysqlversion);
$sql_query = @fread(@fopen("db_scripts/mysql/".$mysqlversion."_create_structure.sql", 'r'), @filesize("./db_scripts/mysql/".$mysqlversion."_create_structure.sql"));
if($dbnameprefx != "") { $dbnameprefx = $dbnameprefx."_"; } else { $dbnameprefx = "sys_"; }
@ -459,6 +457,7 @@ function datasource($POST="")
$sql_query[$i]=make_path($sql_query[$i]);
#####################################
var_dump($sql_query[$i]);
$result = $bd_connect->exec($sql_query[$i]);
if( !$result )
{