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

This commit is contained in:
gbateson
2007-06-26 12:02:34 +00:00
parent e59461215d
commit cafaa207ef
+1
View File
@@ -197,6 +197,7 @@ define("HOTPOT_MAX_EVENT_LENGTH", "432000"); // 5 days maximum
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 {