diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 5109cc3ac..af43248a2 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -315,6 +315,7 @@ public function _initLogger() // Check whether log can be created with $logName... otherwise append a number. // This needs to be done, since logs may be created by other processes (e.g. with // testing) and thus can't be opened anymore. + $writer = null; for ($i = 0; $i < 10; ++$i) { try { $fullLogName = $logName;