diff options
author | Matthieu Aubry <matt@piwik.org> | 2016-02-08 03:17:49 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2016-02-08 03:17:49 +0300 |
commit | 6e51fb01bb7ce3ddad0039916aac8338ec6d1825 (patch) | |
tree | 4e2fb7c517d5f872126b8ff324247711c29b92e6 /core | |
parent | 35f85973d7e9c14f12145d9fcdf7b23f818aa6a3 (diff) | |
parent | e6eb6bc4fa3f0e51d9e5ed95ca75657a464176b9 (diff) |
Merge pull request #9726 from piwik/9722
Fix warning - is_dir(): open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path
Diffstat (limited to 'core')
-rw-r--r-- | core/Db/BatchInsert.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Db/BatchInsert.php b/core/Db/BatchInsert.php index c55d3157b0..84093dca9d 100644 --- a/core/Db/BatchInsert.php +++ b/core/Db/BatchInsert.php @@ -115,7 +115,7 @@ class BatchInsert // in this case tableInsertBatch might still work } - if (empty($path) || !is_dir($path) || !is_writable($path)) { + if (empty($path) || !@is_dir($path) || !@is_writable($path)) { $path = StaticContainer::get('path.tmp') . '/assets/'; } elseif (!Common::stringEndsWith($path, '/')) { $path .= '/'; |