Update ajax_listports.php

Now checks if _GET['debug'] isset to avoid php warnings in logs
Merge pull request #37 from laf/issue-35

Avoid PHP warnings in logs