With code like:

      $order = $user->sort ? $user->sort : .....

and

      $mode = $user->mode ? $user->mode : .....

you're going to get totally different behavior if your comment mode is set to COMMENT_MODE_FLAT_COLLAPSED or your sort is set to COMMENT_ORDER_NEWEST_FIRST (the constants are set to 0), which can't possibly be right.

Comments

chx’s picture

Status: Active » Fixed

now they are 1 based again.

Anonymous’s picture

Status: Fixed » Closed (fixed)