mirror of
https://github.com/eapl-gemugami/gemini-php.git
synced 2025-02-07 20:44:24 +00:00
Fix bug when log file is missing before first run
This commit is contained in:
parent
61b1dffb4c
commit
701023bf2b
@ -29,7 +29,7 @@ class Gemini {
|
||||
$this->default_host_dir .= "/";
|
||||
if($this->logging) {
|
||||
if(!file_exists($this->log_file)) {
|
||||
$this->log_to_file("New log file created");
|
||||
$this->log_to_file("Log created", null, null, null, null);
|
||||
}
|
||||
if(!is_writable($this->log_file)) {
|
||||
die("{$this->log_file} is not writable.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user