Fixed potential PHP error in user field

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