Fix PHP warning for samples listing