Update thx.php

Fixed if counter disabled or count thanks are disabled too, only AJAX misconfig, but fixed.