Fixed PHP warning in user field

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