corrects php error in search detail page
merging