mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
664303956e
commit
56de32c016
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
|
||||||
# no errors, go ahead and create the unprivileged user
|
# no errors, go ahead and create the unprivileged user
|
||||||
$salt = generate_salt();
|
$salt = generate_salt();
|
||||||
$P = salted_hash($P, $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));
|
array($U, $E, $P, $salt, $R, $L, $I));
|
||||||
$q = "INSERT INTO Users (" .
|
$q = "INSERT INTO Users (" .
|
||||||
"AccountTypeID, Suspended, Username, Email, Passwd, Salt" .
|
"AccountTypeID, Suspended, Username, Email, Passwd, Salt" .
|
||||||
|
|
Loading…
Add table
Reference in a new issue