sourcefabric/Airtime — pull request #3 by rmasters (2012-01-27 11:38:58+00:00)
Title: Prevent E_NOTICE in the liveInfo and weekInfo methods of ApiController when a callback is not given

This only wraps `json_encode($request)` in a callback when `$_GET['callback']` is set. Returns just the JSON otherwise. On installs where E_NOTICEs are shown this used to break JSON parsers.