Skip to content

Commit 6a6ed36

Browse files
authored
Merge pull request #9061 from sbulen/30_fix_sqlite_check
[3.0] Fix sqlite connect logic
2 parents a7d14f6 + ad0d4fc commit 6a6ed36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Cache/APIs/Sqlite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function connect(): bool
7979
{
8080
$database = $this->cachedir . '/' . 'SQLite3Cache.db3';
8181

82-
if (!is_writable($database) || !is_writeable($this->cachedir)) {
82+
if ((file_exists($database) && !is_writable($database)) || !is_writeable($this->cachedir)) {
8383
return false;
8484
}
8585

0 commit comments

Comments
 (0)