From f23dea666c9cda0e9b9718731511cd498907ca58 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 13 Aug 2007 02:23:10 +0000 Subject: [PATCH] replacing _NULL_ with $@NULL@$ during backup/restore --- backup/backuplib.php | 2 +- backup/lib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backuplib.php b/backup/backuplib.php index 5b892f192d..7f77ac4c7e 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -446,7 +446,7 @@ //Here we encode absolute links // MDL-10770 if (is_null($content)) { - $content = '_NULL_'; + $content = '$@NULL@$'; } else { $content = backup_encode_absolute_links($content); } diff --git a/backup/lib.php b/backup/lib.php index 52b0875381..113201e341 100644 --- a/backup/lib.php +++ b/backup/lib.php @@ -539,7 +539,7 @@ //It's used intensivelly when restoring modules and saving them in db function backup_todb ($data) { // MDL-10770 - if ($data === '_NULL_') { + if ($data === '$@NULL@$') { return null; } else { return restore_decode_absolute_links(addslashes($data)); -- 2.39.5