From c8275c309613de3bdae16e12a308fcf1080f3d1d Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 15 Aug 2005 00:25:37 +0000 Subject: [PATCH] Pass a default into User::getPref() when trying to retrieve the comments mode set so users with no comment mode set will default to 'threaded'. Otherwise these users won't see any comments. --- include/comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/comment.php b/include/comment.php index 669c735..c42c26f 100644 --- a/include/comment.php +++ b/include/comment.php @@ -368,7 +368,7 @@ function view_app_comments($versionId, $threadId = 0) if (isset($_REQUEST['cmode'])) $_SESSION['current']->setPref("comments:mode", $_REQUEST['cmode']); - $sel[$_SESSION['current']->getPref("comments:mode")] = 'selected'; + $sel[$_SESSION['current']->getPref("comments:mode", "threaded")] = 'selected'; echo '
',"\n"; echo "Application Comments $messageCount total comments "; echo 'Mode