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:
Sam Minnee 2007-12-12 05:15:17 +00:00
parent d45891e114
commit 762c1a7369

View File

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