mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed bug in Database::manipulate() that prevented pages from being saved with single quotes at the end of the title
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46671 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d45891e114
commit
762c1a7369
@ -372,7 +372,7 @@ abstract class Database extends Object {
|
||||
* @param string $array Array where the replacement should happen
|
||||
*/
|
||||
static function replace_with_null(&$array) {
|
||||
$array = str_replace('\'\'', "null", $array);
|
||||
$array = ereg_replace('= *\'\'', "= null", $array);
|
||||
|
||||
if(is_array($array)) {
|
||||
foreach($array as $key => $value) {
|
||||
|
Loading…
Reference in New Issue
Block a user