Date picker: Fixed PHP error

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