Update qa-tt-layer.php

Corrected / updated code in the layer that no longer works in the current version of q2a