API: fix PHP warning on /api/ call (without parameters)

also, single quotes for the string