Fixed PHP error in get_sub_field function

Signed-off-by: Elliot Condon <e@elliotcondon.com>