Permalink
Browse files

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

  • Loading branch information...
1 parent e594612 commit cafaa207ef474800e2ad89985a34e954c665596c gbateson committed Jun 26, 2007
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/hotpot/lib.php
View
@@ -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 {

0 comments on commit cafaa20

Please sign in to comment.