X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fuser_functions.php;h=ec3958a6455f70468f6ed8815f4b6fe713056254;hp=748d68db59ac9a9ce06376e1f49098f460efdd02;hb=f928ad2bed60fa256d0641eaf6d2c027a2944688;hpb=9d3b6045b267bd17eb017f458f24122918df132c diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index 748d68db59..ec3958a645 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -189,16 +189,20 @@ function ADD_PAGENAV ($PAGES, $offset, $show_form, $colspan,$return=false) { } // Create email link to user's account -function generateUserEmailLink($email, $mod='admin') { +function generateUserEmailLink($email, $mod = 'admin') { // Show contact link only if user is confirmed by default $locked = " AND `status`='CONFIRMED'"; // But admins shall always see it if (IS_ADMIN()) $locked = ''; - $result = SQL_QUERY_ESC("SELECT `userid` -FROM `{!_MYSQL_PREFIX!}_user_data` -WHERE `email`='%s'" . $locked." LIMIT 1", + $result = SQL_QUERY_ESC("SELECT + `userid` +FROM + `{!_MYSQL_PREFIX!}_user_data` +WHERE + `email`='%s'" . $locked." +LIMIT 1", array($email), __FUNCTION__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Load userid