Skip to content
Browse files

Fixed Bug 1060: Error inserting second entry from the same input page.

Fixed bug #865.
  • Loading branch information...
1 parent bded7f7 commit 2f39268b3dacf1dfadbb4a620c39d09fa0a0c970 rkingdon committed
Showing with 2 additions and 1 deletion.
  1. +1 −0 mod/dialogue/dialogues.php
  2. +1 −1 mod/dialogue/lib.php
View
1 mod/dialogue/dialogues.php
@@ -129,6 +129,7 @@
foreach ($conversations as $conversation) {
$textarea_name = "reply$conversation->id";
if (!empty($_POST[$textarea_name])) {
+ unset($item);
$item->dialogueid = $dialogue->id;
$item->conversationid = $conversation->id;
$item->userid = $USER->id;
View
2 mod/dialogue/lib.php
@@ -1047,7 +1047,7 @@ function dialogue_print_tabbed_heading($tabs) {
}
// print_simple_box_start("center", "$table->width", "#ffffff", 0);
- echo "<table width=\"$tabs-width\" border=\"0\" valign=\"top\" align=\"center\" ";
+ echo "<table width=\"$tabs->width\" border=\"0\" valign=\"top\" align=\"center\" ";
echo " cellpadding=\"$tabs->cellpadding\" cellspacing=\"0\" class=\"generaltable\">\n";
if (!empty($tabs->names)) {

0 comments on commit 2f39268

Please sign in to comment.
Something went wrong with that request. Please try again.