From f5265108bff5e5006a519de9fee90495db49d194 Mon Sep 17 00:00:00 2001
From: Abdul Malik Ikhsan <samsonasik@gmail.com>
Date: Sat, 21 Mar 2020 00:35:40 +0700
Subject: [PATCH] use empty check for path log config

---
 system/Log/Handlers/FileHandler.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/system/Log/Handlers/FileHandler.php b/system/Log/Handlers/FileHandler.php
index 6660f62cb54b..41df096660ed 100644
--- a/system/Log/Handlers/FileHandler.php
+++ b/system/Log/Handlers/FileHandler.php
@@ -77,8 +77,7 @@ public function __construct(array $config = [])
 	{
 		parent::__construct($config);
 
-		$config['path'] = $config['path'] ?? WRITEPATH . 'logs/';
-		$this->path     = $config['path'] ?: WRITEPATH . 'logs/';
+		$this->path = empty($config['path']) ? WRITEPATH . 'logs/' : $config['path'];
 
 		$this->fileExtension = empty($config['fileExtension']) ? 'log' : $config['fileExtension'];
 		$this->fileExtension = ltrim($this->fileExtension, '.');