diff --git a/resources/DirectoryLister.php b/resources/DirectoryLister.php index 54d88e661..a10451fd7 100644 --- a/resources/DirectoryLister.php +++ b/resources/DirectoryLister.php @@ -16,7 +16,7 @@ class DirectoryLister { // Define application version - const VERSION = '2.9.1'; + const VERSION = '2.9.2'; // Reserve some variables protected $_themeName = null; @@ -72,6 +72,11 @@ public function __construct() { $this->setSystemMessage('error', 'ERROR: Unable to read log file'); } else { touch($log); + if (file_exists($log) && is_writable($log)) { + $this->_logFile = $log; + } else { + $this->setSystemMessage('error', 'ERROR: Unable to read/create log file'); + } } if (filesize($log) <= 0) {