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()) {