continuing development of new discussion system

This commit is contained in:
JT Smith 2003-08-09 21:51:18 +00:00
parent df6d6fe93d
commit fa7331bbf0
3 changed files with 10 additions and 6 deletions

View file

@ -645,7 +645,7 @@ sub setRow {
push(@pairs, $key.'='.quote($data->{$key}));
}
}
WebGUI::SQL->write("update $table set ".join(", ", @pairs), $dbh);
WebGUI::SQL->write("update $table set ".join(", ", @pairs)." where ".$keyColumn."=".quote($data->{$keyColumn}), $dbh);
return $data->{$keyColumn};
}