summaryrefslogtreecommitdiffstats
path: root/web/lib/acctfuncs.inc
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-04-13 12:24:01 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-04-13 12:24:01 +0200
commit56de32c016ef6a1e74e7eb23c16a8b7965d77d68 (patch)
tree94bea6465bfd0ca7f987a7c0408f409038f4018f /web/lib/acctfuncs.inc
parent664303956e9d0bcb53cdf42e7453be8b0509ea68 (diff)
downloadaur-56de32c016ef6a1e74e7eb23c16a8b7965d77d68.tar.gz
aur-56de32c016ef6a1e74e7eb23c16a8b7965d77d68.tar.xz
Pass array_map() callback function properly.
PHP requires callback functions to be passed as strings. Fix this to supress PHP notices. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/acctfuncs.inc')
-rw-r--r--web/lib/acctfuncs.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc
index 22d5c5f4..fe1cfb1a 100644
--- a/web/lib/acctfuncs.inc
+++ b/web/lib/acctfuncs.inc
@@ -265,7 +265,7 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
# no errors, go ahead and create the unprivileged user
$salt = generate_salt();
$P = salted_hash($P, $salt);
- $escaped = array_map(mysql_real_escape_string,
+ $escaped = array_map('mysql_real_escape_string',
array($U, $E, $P, $salt, $R, $L, $I));
$q = "INSERT INTO Users (" .
"AccountTypeID, Suspended, Username, Email, Passwd, Salt" .