Permalink
Browse files

Columns cannot be null anymore. Bug 5343.

(http://moodle.org/bugs/bug.php?op=show&bugid=5343)

Please document it in coding guidelines!!!
  • Loading branch information...
1 parent 2ce22ad commit 062a84a62afd3ecb522863ad429479f0653f4d56 stronk7 committed Apr 28, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/lib.php
View
@@ -409,7 +409,7 @@ function backup_putid ($backup_unique_code, $table, $old_id, $new_id, $info="")
$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);

0 comments on commit 062a84a

Please sign in to comment.