web: PHP warning fix

This commit is contained in:
David Anderson 2013-05-08 23:08:50 -07:00
parent 78c6cac276
commit 7a63c1bb71
1 changed files with 1 additions and 1 deletions

View File

@ -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']);
}