Fixing issue were search was resulting in a php warning/notice

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>