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

Commit

Permalink
Initialize $writer variable to prevent warning in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Frischmuth committed Jul 11, 2013
1 parent db6ce8c commit 6218f13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6218f13

Please sign in to comment.