Skip to content

Commit 0be0f74

Browse files
committed
Add check for SQLite3 class in isSupported
1 parent 4e8ee1e commit 0be0f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sqlite/SqliteDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Joomla\Database\Sqlite;
1010

11-
use Sqlite3;
11+
use SQLite3;
1212
use Joomla\Database\Pdo\PdoDriver;
1313

1414
/**
@@ -394,7 +394,7 @@ public function unlockTables()
394394
*/
395395
public static function isSupported()
396396
{
397-
return class_exists('\\PDO') && in_array('sqlite', \PDO::getAvailableDrivers());
397+
return class_exists('\\PDO') && class_exists('\\SQLite3') && in_array('sqlite', \PDO::getAvailableDrivers());
398398
}
399399

400400
/**

0 commit comments

Comments
 (0)