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:
Thomas Portelange 2022-08-19 15:07:23 +02:00 committed by GitHub
parent 05abb3f483
commit ecaadc029e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()