diff --git a/php/Modules/Config.php b/php/Modules/Config.php index 60276ff..892e03d 100644 --- a/php/Modules/Config.php +++ b/php/Modules/Config.php @@ -42,7 +42,7 @@ $config = ""; // Save file - if (file_put_contents(LYCHEE_CONFIG_FILE, $config)===false) return 'Warning: Could not create file!'; + if (@file_put_contents(LYCHEE_CONFIG_FILE, $config)===false) return 'Warning: Could not create file!'; return true; diff --git a/php/Modules/Database.php b/php/Modules/Database.php index 3f0d54d..2df65dc 100755 --- a/php/Modules/Database.php +++ b/php/Modules/Database.php @@ -81,7 +81,7 @@ final class Database { public static function connect($host = 'localhost', $user, $password) { // Open a new connection to the MySQL server - $connection = new Mysqli($host, $user, $password); + $connection = @new Mysqli($host, $user, $password); // Check if the connection was successful if ($connection->connect_errno) return false;