Fixed PHP error in Gallery field

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