aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-02-22 20:06:49 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-02-22 20:06:49 +0100
commitcf517509c86c8a747dc0c58e61cb3f9d4535deae (patch)
treecf49fdcf3d69a33cc96592cb26f3c45ff60a138a
parent4b0a04b10991f151d492cf0a5edd84fc53725dc3 (diff)
parentc160882cdbf892e2d19d2990502f0e918dda75e4 (diff)
downloadforums-cf517509c86c8a747dc0c58e61cb3f9d4535deae.tar
forums-cf517509c86c8a747dc0c58e61cb3f9d4535deae.tar.gz
forums-cf517509c86c8a747dc0c58e61cb3f9d4535deae.tar.bz2
forums-cf517509c86c8a747dc0c58e61cb3f9d4535deae.tar.xz
forums-cf517509c86c8a747dc0c58e61cb3f9d4535deae.zip
Merge pull request #5133 from rubencm/ticket/15563
[ticket/15563] Check if database file is writable only if exists
-rw-r--r--phpBB/phpbb/install/helper/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/install/helper/database.php b/phpBB/phpbb/install/helper/database.php
index ad0f3dd3cd..21af652f9d 100644
--- a/phpBB/phpbb/install/helper/database.php
+++ b/phpBB/phpbb/install/helper/database.php
@@ -338,7 +338,7 @@ class database
// Check if SQLite database is writable
if ($dbms_info['SCHEMA'] === 'sqlite'
- && (!$this->filesystem->is_writable($dbhost) || !$this->filesystem->is_writable(pathinfo($dbhost, PATHINFO_DIRNAME))))
+ && (($this->filesystem->exists($dbhost) && !$this->filesystem->is_writable($dbhost)) || !$this->filesystem->is_writable(pathinfo($dbhost, PATHINFO_DIRNAME))))
{
$errors[] = array(
'title' =>'INST_ERR_DB_NO_WRITABLE',