summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2013-01-12 22:07:14 -0800
committerArun Persaud <arun@nubati.net>2013-01-12 22:07:14 -0800
commitb3e8693512b850c4e8d375bb5935de18c42efae0 (patch)
tree0032f1bb78b1795441117f75d0c3d8c0e028b272
parentaf439169000d0c1f9a430cc67635c6d0479e452a (diff)
downloade-DoKo-b3e8693512b850c4e8d375bb5935de18c42efae0.tar.gz
e-DoKo-b3e8693512b850c4e8d375bb5935de18c42efae0.tar.bz2
e-DoKo-b3e8693512b850c4e8d375bb5935de18c42efae0.zip
BUGFIX: fixed wrong uid value in mymail function
used the array instead of a value in the array
-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 */