Permalink
Browse files

make sure $hotpot->id is set when adding calendar events for new HotPot

  • Loading branch information...
1 parent e29a752 commit 8acecdb821eec7ec398c3b56ba4f6396c1a2f582 gbateson committed Jun 26, 2007
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/hotpot/lib.php
View
1 mod/hotpot/lib.php
@@ -193,6 +193,7 @@
function hotpot_add_instance(&$hp) {
if (hotpot_set_form_values($hp)) {
if ($result = insert_record('hotpot', $hp)) {
+ $hp->id = $result;
hotpot_update_events($hp);
}
} else {

0 comments on commit 8acecdb

Please sign in to comment.