*** include/forum_adm.inc --- include/forum_adm.inc 2005-10-13 20:26:29.000000000 -0600 *************** *** 15,27 **** var $id, $cat_id, $name, $descr, $post_passwd, $forum_icon, $forum_opt, $date_created, $view_order, $message_threshold, $max_attach_size, $max_file_attachments; ! function fud_forum() { foreach ($this as $k => $v) { if (isset($_POST['frm_'.$k])) { $this->{$k} = $_POST['frm_'.$k]; } } } function add($pos) --- 15,29 ---- var $id, $cat_id, $name, $descr, $post_passwd, $forum_icon, $forum_opt, $date_created, $view_order, $message_threshold, $max_attach_size, $max_file_attachments; ! function fud_forum($icon='') { foreach ($this as $k => $v) { + if ($k == 'forum_icon') continue; if (isset($_POST['frm_'.$k])) { $this->{$k} = $_POST['frm_'.$k]; } } + $this->forum_icon = $icon; } function add($pos) *************** *** 165,171 **** function frm_add_view_tbl($view_tbl) { ! foreach (explode(';', file_get_contents($GLOBALS['DATA_DIR'].'/sql/fud_thread_view.tbl')) as $v) { if (!strncmp(($v = trim($v)), 'CREATE', 6)) { if (__dbtype__ == 'pgsql') { $v = str_replace('INT NOT NULL AUTO_INCREMENT', 'SERIAL', $v); --- 167,173 ---- function frm_add_view_tbl($view_tbl) { ! foreach (explode(';', file_get_contents($GLOBALS['DATA_DIR'].'sql/fud_thread_view.tbl')) as $v) { if (!strncmp(($v = trim($v)), 'CREATE', 6)) { if (__dbtype__ == 'pgsql') { $v = str_replace('INT NOT NULL AUTO_INCREMENT', 'SERIAL', $v);