From b3e8693512b850c4e8d375bb5935de18c42efae0 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 12 Jan 2013 22:07:14 -0800 Subject: BUGFIX: fixed wrong uid value in mymail function used the array instead of a value in the array --- include/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 7888a76..31f918c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -122,17 +122,17 @@ function mymail($uid,$gameid=0,$type,$message) /* do we send the email right away or save it in the database? */ $send_now = 1; - $name = DB_get_name('userid',$uid); + $name = DB_get_name('userid',$user); $header = sprintf(_('Hello %s'),$name); $header .= "\n\n"; - $To = DB_get_email('userid',$uid); + $To = DB_get_email('userid',$user); /* check if user wants email right away or if we should save it in * the database for later delivery */ - $uidPREF = DB_get_PREF($uid); + $uidPREF = DB_get_PREF($user); if( $uidPREF['digest'] != 'digest-off' ) $send_now = 0; /* use local language */ -- cgit v1.2.3-18-g5258