Merge branch '4.11' into 4

This commit is contained in:
Steve Boyd 2022-07-04 13:20:12 +12:00
commit b101b8bdb8
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ class PDOConnector extends DBConnector implements TransactionManager
public function quoteString($value)
{
return $this->pdoConnection->quote($value);
return $this->pdoConnection->quote($value ?? '');
}
/**

View File

@ -948,7 +948,7 @@ class Security extends Controller implements TemplateGlobalProvider
static::clearSessionMessage();
// Ensure title is present - in case getResponseController() didn't return a page controller
$fragments = array_merge($fragments, ['Title' => $title]);
$fragments = array_merge(['Title' => $title], $fragments);
if ($message) {
$messageResult = [
'Content' => DBField::create_field('HTMLFragment', $message),