commit | dc0ad20329ed3c3f800f3fe0b68f73cff970cdb2 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Wed Sep 17 10:34:04 2014 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Wed Sep 17 10:34:04 2014 +0300 |
tree | 2ceb1ce1346528df6c158757c3bd9883b81afe98 | |
parent | e18dfa3d55a254b00872aa82a8cb939d679a8e5b [diff] [blame] |
Don't assume that log_file_permissions exists
diff --git a/system/core/Log.php b/system/core/Log.php index 57505b5..1dca1bf 100644 --- a/system/core/Log.php +++ b/system/core/Log.php
@@ -137,7 +137,7 @@ $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']; }