diff --git a/phpmyfaq/src/phpMyFAQ/Mail.php b/phpmyfaq/src/phpMyFAQ/Mail.php index 9657db9702..7ef7054975 100644 --- a/phpmyfaq/src/phpMyFAQ/Mail.php +++ b/phpmyfaq/src/phpMyFAQ/Mail.php @@ -366,7 +366,7 @@ public function addTo(string $address, ?string $name = null): bool */ public function send(): int { - // Sanity check + // Check if (count($this->to) + count($this->cc) + count($this->bcc) < 1) { throw new Exception( 'Mail Class: you need at least to set one recipient among TO, CC and BCC!' diff --git a/phpmyfaq/src/phpMyFAQ/Translation.php b/phpmyfaq/src/phpMyFAQ/Translation.php index 2361be8cf3..f3ea11ecca 100644 --- a/phpmyfaq/src/phpMyFAQ/Translation.php +++ b/phpmyfaq/src/phpMyFAQ/Translation.php @@ -282,6 +282,7 @@ protected function filename(string $language): string private static function fetchTranslationFile(): array { $LANG_CONF = []; + include self::$translation->filename('en'); include self::$translation->filename(self::$translation->currentLanguage); return $LANG_CONF;