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()
|
||||
{
|
||||
$message = $this->dbConn->lastErrorMsg();
|
||||
return $message === 'not an error' ? null : $message;
|
||||
return $message === 'not an error' ? '' : $message;
|
||||
}
|
||||
|
||||
public function getSelectedDatabase()
|
||||
|
|
Loading…
Reference in New Issue