Skip to content

Commit

Permalink
Columns cannot be null anymore. Bug 5343.
Browse files Browse the repository at this point in the history
(http://moodle.org/bugs/bug.php?op=show&bugid=5343)

Please document it in coding guidelines!!!
  • Loading branch information
stronk7 committed Apr 28, 2006
1 parent 2ce22ad commit 062a84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ function backup_putid ($backup_unique_code, $table, $old_id, $new_id, $info="")
$rec->backup_code = $backup_unique_code; $rec->backup_code = $backup_unique_code;
$rec->table_name = $table; $rec->table_name = $table;
$rec->old_id = $old_id; $rec->old_id = $old_id;
$rec->new_id =$new_id; $rec->new_id = ($new_id === null? 0 : $new_id);
$rec->info = $info_to_save; $rec->info = $info_to_save;


$status = insert_record('backup_ids', $rec, false); $status = insert_record('backup_ids', $rec, false);
Expand Down

0 comments on commit 062a84a

Please sign in to comment.