Skip to content

Commit

Permalink
fix #547 by @FGServers
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasKovacs committed May 1, 2023
1 parent 8f62d86 commit 1505733
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/Install/InstallationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ private function tryDatabase()
*/
private function writeConfigFile()
{
$config_file = @fopen(XGP_ROOT . CONFIGS_PATH . 'config.php', 'w');
$config_file = fopen(XGP_ROOT . CONFIGS_PATH . 'config.php', 'w');

if (!$config_file) {
return false;
Expand All @@ -418,8 +418,8 @@ private function writeConfigFile()
}

// check if something was created and delete it
if (file_exists($config_file)) {
unlink($config_file);
if (file_exists(XGP_ROOT . CONFIGS_PATH . 'config.php')) {
unlink(XGP_ROOT . CONFIGS_PATH . 'config.php');
}

return false;
Expand Down

0 comments on commit 1505733

Please sign in to comment.