From 56de32c016ef6a1e74e7eb23c16a8b7965d77d68 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 13 Apr 2011 12:24:01 +0200 Subject: 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 --- web/lib/acctfuncs.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" . -- cgit v1.2.3-24-g4f1b