diff --git a/main/forum/viewthread.php b/main/forum/viewthread.php index 645212b9db..ddc4e1eed9 100644 --- a/main/forum/viewthread.php +++ b/main/forum/viewthread.php @@ -225,7 +225,10 @@ if ($message<>'PostDeletedSpecial') // in this case the first and only post of t $viewmode=$_GET['view']; $_SESSION['view']=$viewmode; } - + if(empty($viewmode)) + { + $viewmode = 'flat'; + } /* ----------------------------------------------------------- @@ -273,6 +276,8 @@ if ($message<>'PostDeletedSpecial') // in this case the first and only post of t break; case 'nested': include_once('viewthread_nested.inc.php'); + default: + include_once('viewthread_flat.inc.php'); break; } } // if ($message<>'PostDeletedSpecial') // in this case the first and only post of the thread is removed