Update sphinxapi.php

Undefined offset: 1