X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fbonus_functions.php;h=c348118bbfd3169eccee73e8fac7e9c800984bd1;hp=5b7358917ef5bec4e9a2ba12e4b24bdc0c207ee6;hb=b5cc7a564aee39e995b64c3db502b02ef20379bd;hpb=013448f0470ca36ab15b888928e2127e6da7d9b6 diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index 5b7358917e..c348118bbf 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -170,6 +170,15 @@ LIMIT 1", // Load data $rows = merge_array($rows, SQL_FETCHARRAY($result_users)); + // Is ext-nickname active? + if (isExtensionActive('nickname')) { + // Then get the nickname + $nick = getNickname($rows['userid']); + + // Is it not empty? Then use it + if (!empty($nick)) $rows['userid'] = $nick . '(' . $rows['userid'] . ')'; + } // END - if + // Translate comma $rows['points'] = translateComma($rows['points']); } // END - if