mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Handle null values passed to PDO::quote() (#10383)
This commit is contained in:
parent
b37178e831
commit
ad83b78a10
@ -292,7 +292,7 @@ class PDOConnector extends DBConnector implements TransactionManager
|
||||
|
||||
public function quoteString($value)
|
||||
{
|
||||
return $this->pdoConnection->quote($value);
|
||||
return $this->pdoConnection->quote($value ?? '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user