Skip to content

Commit ad0d4fc

Browse files
committed
Make sure it exists first
Signed-off-by: Shawn Bulen <[email protected]>
1 parent 3d9d009 commit ad0d4fc

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)