From 8090cf9eafa0246903eaa06766680f8346afb3f6 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tim.dijen@minbzk.nl> Date: Wed, 18 Sep 2019 15:27:00 +0200 Subject: [PATCH] Improve readability --- modules/core/lib/Stats/Output/File.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/lib/Stats/Output/File.php b/modules/core/lib/Stats/Output/File.php index 54530065c..be44d7079 100644 --- a/modules/core/lib/Stats/Output/File.php +++ b/modules/core/lib/Stats/Output/File.php @@ -69,11 +69,11 @@ class File extends \SimpleSAML\Stats\Output if ($fh === false) { throw new Error\Exception('Error opening log file: '.var_export($fileName, true)); } - $this->file = $fh; // Disable output buffering - stream_set_write_buffer($this->file, 0); + stream_set_write_buffer($fh, 0); + $this->file = $fh; $this->fileDate = $date; } -- GitLab