[geeklog-cvs] geeklog: Let USER_sendNotification return the result of COM_mail
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Feb 1 11:59:12 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/063645a4564f
changeset: 6748:063645a4564f
user: Dirk Haun <dirk at haun-online.de>
date: Sun Feb 01 17:18:07 2009 +0100
description:
Let USER_sendNotification return the result of COM_mail
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
system/lib-user.php | 4 +++-
diffs (21 lines):
diff -r 3e15885d32b4 -r 063645a4564f system/lib-user.php
--- a/system/lib-user.php Sun Feb 01 13:34:44 2009 +0100
+++ b/system/lib-user.php Sun Feb 01 17:18:07 2009 +0100
@@ -345,6 +345,7 @@
* @param email string Email address of the new user
* @param uid int User id of the new user
* @param mode string Mode user was added at.
+* @return bool true = success, false = an error occured
*
*/
function USER_sendNotification ($username, $email, $uid, $mode='inactive')
@@ -367,7 +368,8 @@
$mailbody .= "\n------------------------------\n";
$mailsubject = $_CONF['site_name'] . ' ' . $LANG29[40];
- COM_mail ($_CONF['site_mail'], $mailsubject, $mailbody);
+
+ return COM_mail($_CONF['site_mail'], $mailsubject, $mailbody);
}
/**
More information about the geeklog-cvs
mailing list