Index: public_html/modules/custom/eyespot/eyespot.module =================================================================== --- public_html/modules/custom/eyespot/eyespot.module (revision 704) +++ public_html/modules/custom/eyespot/eyespot.module (revision 706) @@ -24,7 +24,7 @@ array( 'musicbox.getUserName', 'eyespot_get_username', - array('string', 'string'), + array('array', 'string'), t('Returns a username related to a given session id.')), array( 'musicbox.getSession', @@ -45,9 +45,9 @@ function eyespot_get_username($sid) { // NOTE: We'll do an IP address check here from the referrer - if ($username = db_result(db_query("SELECT u.name FROM {users} u INNER JOIN {sessions} s on s.uid = u.uid WHERE -sid = '%s'", $sid))) { - return $username; + if ($u = db_fetch_object(db_query("SELECT u.name, u.mail FROM {users} u INNER JOIN {sessions} s on s.uid += u.uid WHERE sid = '%s'", $sid))) { + return array('name' => $u->name, 'mail' => $u->mail); } else { //return eyespot_error($username);