Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 6218f13

Browse files
author
Philipp Frischmuth
committed
Initialize $writer variable to prevent warning in strict mode
1 parent db6ce8c commit 6218f13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

application/Bootstrap.php

+1
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ public function _initLogger()
315315
// Check whether log can be created with $logName... otherwise append a number.
316316
// This needs to be done, since logs may be created by other processes (e.g. with
317317
// testing) and thus can't be opened anymore.
318+
$writer = null;
318319
for ($i = 0; $i < 10; ++$i) {
319320
try {
320321
$fullLogName = $logName;

0 commit comments

Comments
 (0)