src/Language/LanguageModel.php
public function getUserLanguage($userId) {
        $sql = 'SELECT language.id_language,
                       language.name,
                       language.code,
                       language.default
                FROM user
                INNER JOIN language ON language.id_language = user.id_language
                WHERE user.id_user=\''.$userId.'\'';

        $language = $this->select($sql);
        if (count($language)>0) {
            return $language[0];
        } else {
            return false;
        }
    }
public function getUserLanguage($userId) {
        $sql = 'SELECT language.id_language,
                       language.name,
                       language.code,
                       language.default
                FROM user
                INNER JOIN language ON language.id_language = user.id_language
                WHERE user.id_user=\''.$userId.'\'';

        $language = $this->select($sql);
        if (count($language)>0) {
            return $language[0];
        } else {
            return false;
        }
    }
Return the user language properties.

@param int $userId
@return boolean