Fixed LTI logic in discussion.php