Missed a set of round brackets on this->exists.
This commit is contained in:
@@ -1014,11 +1014,10 @@ include "root.php";
|
|||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$prep_statementsub = $this->dbh->prepare($sql);
|
$prep_statement_sub = $this->dbh->prepare($sql);
|
||||||
$prep_statementsub->execute();
|
$prep_statement_sub->execute();
|
||||||
$_SESSION['permissions'] = $prep_statementsub->fetchAll(PDO::FETCH_NAMED);
|
$_SESSION['permissions'] = $prep_statement_sub->fetchAll(PDO::FETCH_NAMED);
|
||||||
unset($sql, $prep_statementsub);
|
unset($sql, $prep_statement_sub);
|
||||||
|
|
||||||
|
|
||||||
//include the config.php
|
//include the config.php
|
||||||
$db_type = $this->db_type;
|
$db_type = $this->db_type;
|
||||||
@@ -1031,7 +1030,6 @@ include "root.php";
|
|||||||
|
|
||||||
//add the database structure
|
//add the database structure
|
||||||
require_once "resources/classes/schema.php";
|
require_once "resources/classes/schema.php";
|
||||||
global $db, $db_type, $db_name, $db_username, $db_password, $db_host, $db_path, $db_port;
|
|
||||||
$schema = new schema;
|
$schema = new schema;
|
||||||
echo $schema->schema();
|
echo $schema->schema();
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class config {
|
|||||||
*/
|
*/
|
||||||
public function get() {
|
public function get() {
|
||||||
$this->find();
|
$this->find();
|
||||||
if ($this->exists) {
|
if ($this->exists()) {
|
||||||
require $this->config_path;
|
require $this->config_path;
|
||||||
$this->db_type = $db_type;
|
$this->db_type = $db_type;
|
||||||
$this->db_name = $db_name;
|
$this->db_name = $db_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user