From dc0ad20329ed3c3f800f3fe0b68f73cff970cdb2 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 17 Sep 2014 10:34:04 +0300 Subject: Don't assume that log_file_permissions exists --- system/core/Log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/core/Log.php b/system/core/Log.php index 57505b526..1dca1bf3b 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -137,7 +137,7 @@ class CI_Log { $this->_date_fmt = $config['log_date_format']; } - if (is_int($config['log_file_permissions'])) + if ( ! empty($config['log_file_permissions']) && is_int($config['log_file_permissions'])) { $this->_file_permissions = $config['log_file_permissions']; } -- cgit v1.2.3-24-g4f1b