summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dash/dash_functions.php4
-rw-r--r--dash/profile.php2
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'],