FIXED: loss content on editing a page

This commit is contained in:
michaelpenne 2005-05-09 02:29:35 +00:00
parent 156f67fd22
commit 98dd2c00f4

View File

@ -35,7 +35,7 @@
$page->title = clean_param($form->title, PARAM_CLEANHTML);
$page->contents = clean_param(trim($form->contents), PARAM_CLEANHTML);
$page->title = addslashes($page->title);
$page->contents = addslashes($page->title);
$page->contents = addslashes($page->contents);
if (!update_record("lesson_pages", $page)) {
error("Update page: page not updated");
}