fix php notice in search widget