A couple of issues in Topic.subs.php

Signed-off-by: emanuele <emanuele45@gmail.com>
Some dead code

Signed-off-by: emanuele <emanuele45@gmail.com>