Fix in searchbar - php version compatibility