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
Comment #1
chx commentednow they are 1 based again.
Comment #2
(not verified) commented