diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-04-13 12:24:01 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-04-13 12:24:01 +0200 |
commit | 56de32c016ef6a1e74e7eb23c16a8b7965d77d68 (patch) | |
tree | 94bea6465bfd0ca7f987a7c0408f409038f4018f /web | |
parent | 664303956e9d0bcb53cdf42e7453be8b0509ea68 (diff) | |
download | aur-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')
-rw-r--r-- | web/lib/acctfuncs.inc | 2 |
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" . |