diff options
| author | Carson Fleming <cflems@cflems.net> | 2025-06-03 02:38:41 -0400 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2025-06-03 02:38:41 -0400 |
| commit | 37c99c0646b2a93f839b4fbda16da183e9fa5f7c (patch) | |
| tree | fffbe2f1d50971967a32c681c95132d965c9e485 | |
| parent | 3f80bcbc08ab05013af9e322bbb1a2216ce58dbb (diff) | |
| download | bulletin-37c99c0646b2a93f839b4fbda16da183e9fa5f7c.tar.gz | |
| -rw-r--r-- | dash/dash_functions.php | 4 | ||||
| -rw-r--r-- | dash/profile.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dash/dash_functions.php b/dash/dash_functions.php index da87328..e4f2a6b 100644 --- a/dash/dash_functions.php +++ b/dash/dash_functions.php @@ -32,10 +32,10 @@ function address_format ($addrstr) { return htmlentities(implode(', ', $addr)); } function address_split ($addrstr) { - return array_map(trim, explode(';', $addrstr)); + return array_map('trim', explode(';', $addrstr)); } function address_join ($addr) { - return implode(';', array_map(trim, $addr)); + return implode(';', array_map('trim', $addr)); } function validate_address ($addr) { $patterns = array( diff --git a/dash/profile.php b/dash/profile.php index a59109c..40e43c4 100644 --- a/dash/profile.php +++ b/dash/profile.php @@ -75,7 +75,7 @@ $result->free(); } else if (!empty($_POST['chprofile'])) { $bio = empty($_POST['bio']) ? 'NULL' : '\''.$db->escape_string($_POST['bio']).'\''; // Address validation - $addr = array_map(trim, array( + $addr = array_map('trim', array( $_POST['address1'], $_POST['address2'], $_POST['addrcity'], |
