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:
Lukas Fleischer 2011-04-13 12:24:01 +02:00
parent 664303956e
commit 56de32c016

View file

@ -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" .