From 7a63c1bb71c65b18809248648afd6316249164d7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 8 May 2013 23:08:50 -0700 Subject: [PATCH] web: PHP warning fix --- html/user/forum_thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/user/forum_thread.php b/html/user/forum_thread.php index 0e7427190d..12db692094 100644 --- a/html/user/forum_thread.php +++ b/html/user/forum_thread.php @@ -74,10 +74,10 @@ $title = cleanup_title($thread->title); if ($temp_sort_style) { $sort_style = $temp_sort_style; } else if ($sort_style) { + $forum_style = 0; // this is deprecated if ($logged_in_user){ $logged_in_user->prefs->thread_sorting = $sort_style; $logged_in_user->prefs->update("thread_sorting=$sort_style"); - $forum_style = 0; // I guess this is deprecated } else if (array_key_exists('sorting', $_COOKIE)) { list($forum_style, $old_style) = explode("|", $_COOKIE['sorting']); }