set default value
This commit is contained in:
@@ -68,7 +68,7 @@ function booking_register_page()
|
|||||||
* based on https://www.drupal.org/node/854216
|
* based on https://www.drupal.org/node/854216
|
||||||
* $string = string for search
|
* $string = string for search
|
||||||
*/
|
*/
|
||||||
function _booking_ecclesia_name_autocomplete($string) {
|
function _booking_ecclesia_name_autocomplete($string = "") {
|
||||||
$matches = array();
|
$matches = array();
|
||||||
$sanitised_string = preg_replace("/[^a-zA-Z0-9\s\.']/", '', $string);
|
$sanitised_string = preg_replace("/[^a-zA-Z0-9\s\.']/", '', $string);
|
||||||
$sanitised_string .= "%";
|
$sanitised_string .= "%";
|
||||||
|
Reference in New Issue
Block a user