From d151bc1fd754374ca5cd4700e0e231de5df7003e Mon Sep 17 00:00:00 2001 From: secretr Date: Wed, 22 Jun 2011 09:01:26 +0000 Subject: [PATCH] missing sql query --- e107_plugins/forum/forum_admin.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e107_plugins/forum/forum_admin.php b/e107_plugins/forum/forum_admin.php index b2e68712a..fea1d212f 100644 --- a/e107_plugins/forum/forum_admin.php +++ b/e107_plugins/forum/forum_admin.php @@ -194,7 +194,12 @@ if(isset($_POST['update_parent'])) $tmp['_FIELD_TYPES']['forum_postclass'] = 'int'; $tmp['_FIELD_TYPES']['forum_threadclass'] = 'int'; $tmp['WHERE'] = 'forum_id = '.(int)$id; - $e107->sql->db_Update('forum', $tmp); + $tmp['data']['forum_name'] = $_POST['forum_name']; + $tmp['data']['forum_datestamp'] = time(); + $tmp['data']['forum_class'] = $_POST['forum_class']; + $tmp['data']['forum_postclass'] = $_POST['forum_postclass']; + $tmp['data']['forum_threadclass'] = $_POST['forum_threadclass']; + e107::getDb()->db_Update('forum', $tmp); $forum->show_message(FORLAN_14); $action = 'main'; }