Skip to content

Commit

Permalink
make sure $hotpot->id is set when adding calendar events for new HotPot
Browse files Browse the repository at this point in the history
  • Loading branch information
gbateson committed Jun 26, 2007
1 parent a80094e commit 81f99d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/hotpot/lib.php
Expand Up @@ -197,6 +197,7 @@
function hotpot_add_instance(&$hotpot) {
if (hotpot_set_form_values($hotpot)) {
if ($result = insert_record('hotpot', $hotpot)) {
$hotpot->id = $result;
hotpot_update_events($hotpot);
}
} else {
Expand Down

0 comments on commit 81f99d2

Please sign in to comment.