summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-09-17 09:34:04 +0200
committerAndrey Andreev <narf@devilix.net>2014-09-17 09:34:04 +0200
commitdc0ad20329ed3c3f800f3fe0b68f73cff970cdb2 (patch)
tree2ceb1ce1346528df6c158757c3bd9883b81afe98
parente18dfa3d55a254b00872aa82a8cb939d679a8e5b (diff)
Don't assume that log_file_permissions exists
-rw-r--r--system/core/Log.php2
1 files changed, 1 insertions, 1 deletions
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'];
}