From 4a5cd27cb3d40fd9d72154b0840df465228e3ce6 Mon Sep 17 00:00:00 2001 From: Niel Buys Date: Tue, 23 Jun 2026 10:32:36 +0200 Subject: [PATCH] Define result variable in write_log --- system/core/Log.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/core/Log.php b/system/core/Log.php index ca3e38a7fec..a69d285ef82 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -218,6 +218,7 @@ public function write_log($level, $msg) $message .= $this->_format_line($level, $date, $msg); + $result = FALSE; for ($written = 0, $length = self::strlen($message); $written < $length; $written += $result) { if (($result = fwrite($fp, self::substr($message, $written))) === FALSE)