mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
Enforce proper type
Otherwise it may fail when passed to preg_match Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated
This commit is contained in:
parent
05abb3f483
commit
ecaadc029e
@ -48,7 +48,7 @@ class SQLite3Connector extends DBConnector
|
|||||||
public function getLastError()
|
public function getLastError()
|
||||||
{
|
{
|
||||||
$message = $this->dbConn->lastErrorMsg();
|
$message = $this->dbConn->lastErrorMsg();
|
||||||
return $message === 'not an error' ? null : $message;
|
return $message === 'not an error' ? '' : $message;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSelectedDatabase()
|
public function getSelectedDatabase()
|
||||||
|
Loading…
Reference in New Issue
Block a user