Ref link fixed, nickname fixed, several rewrites, TODOs.txt updated:
[mailer.git] / inc / filters.php
index db886a0d651df3c432abe16812a198e50baef5c9..b1784834747acc3e5cd82a9be03b740917f589c8 100644 (file)
@@ -591,8 +591,10 @@ function FILTER_DETERMINE_USERNAME () {
                        array(getUserId()), __FILE__, __LINE__);
                if (SQL_NUMROWS($result) == 1) {
                        // Load surname and family's name and build the username
-                       list($s, $f) = SQL_FETCHROW($result);
-                       $username = $s . ' ' . $f;
+                       $content = SQL_FETCHARRAY($result);
+
+                       // Prepare username
+                       $username = $content['surname'] . ' ' . $content['family'];
 
                        // Additionally admin?
                        if (IS_ADMIN()) {