From: stronk7 Date: Fri, 28 Apr 2006 23:42:12 +0000 (+0000) Subject: Columns cannot be null anymore. Bug 5343. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=062a84a62afd3ecb522863ad429479f0653f4d56;p=moodle.git Columns cannot be null anymore. Bug 5343. (http://moodle.org/bugs/bug.php?op=show&bugid=5343) Please document it in coding guidelines!!! --- diff --git a/backup/lib.php b/backup/lib.php index 5acf1108cb..c7947e0cce 100644 --- a/backup/lib.php +++ b/backup/lib.php @@ -409,7 +409,7 @@ $rec->backup_code = $backup_unique_code; $rec->table_name = $table; $rec->old_id = $old_id; - $rec->new_id =$new_id; + $rec->new_id = ($new_id === null? 0 : $new_id); $rec->info = $info_to_save; $status = insert_record('backup_ids', $rec, false);