Docker setup is now working!!
This commit is contained in:
parent
62a5d4c3d6
commit
ad66fe3285
|
@ -3,6 +3,7 @@ version: '3.3'
|
|||
services:
|
||||
db:
|
||||
image: mariadb:latest
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
restart: always
|
||||
|
|
|
@ -162,7 +162,7 @@ class database{
|
|||
}
|
||||
|
||||
public function isOptionsEmpty(){
|
||||
return empty($this->database->exec("SELECT * FROM `%PREFIX%_options`;", true));
|
||||
return empty($this->exec("SELECT * FROM `%PREFIX%_options`;", true));
|
||||
}
|
||||
|
||||
public function __construct(){
|
||||
|
@ -170,7 +170,7 @@ class database{
|
|||
define("DATABASE", "OK");
|
||||
}
|
||||
$this->connect();
|
||||
if($this->isOptionsEmpty){
|
||||
if($this->isOptionsEmpty()){
|
||||
header('Location: install/install.php');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue