summaryrefslogtreecommitdiffstats
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php6
1 files changed, 3 insertions, 3 deletions
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 */