set default value

This commit is contained in:
Nathan Coad
2019-09-17 13:51:34 +10:00
parent 20a2984f49
commit e29e2d9f60

View File

@@ -68,7 +68,7 @@ function booking_register_page()
* based on https://www.drupal.org/node/854216
* $string = string for search
*/
function _booking_ecclesia_name_autocomplete($string) {
function _booking_ecclesia_name_autocomplete($string = "") {
$matches = array();
$sanitised_string = preg_replace("/[^a-zA-Z0-9\s\.']/", '', $string);
$sanitised_string .= "%";