Skip to content

Commit

Permalink
Fixed tiny buglet on insert_record which made it ignore NULL values
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Aug 8, 2002
1 parent df8fa8f commit e5a57e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moodlelib.php
Expand Up @@ -730,7 +730,7 @@ function insert_record($table, $dataobject) {


// Pull out data matching these fields // Pull out data matching these fields
foreach ($columns as $column) { foreach ($columns as $column) {
if ($column->name <> "id" && $data[$column->name] ) { if ($column->name <> "id" && isset($data[$column->name]) ) {
$ddd[$column->name] = $data[$column->name]; $ddd[$column->name] = $data[$column->name];
} }
} }
Expand Down

0 comments on commit e5a57e8

Please sign in to comment.