From: Arun Persaud Date: Sun, 13 Jan 2013 06:07:14 +0000 (-0800) Subject: BUGFIX: fixed wrong uid value in mymail function X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=b3e8693512b850c4e8d375bb5935de18c42efae0 BUGFIX: fixed wrong uid value in mymail function used the array instead of a value in the array --- 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 */