diff --git a/phpmyfaq/src/phpMyFAQ/Faq.php b/phpmyfaq/src/phpMyFAQ/Faq.php index d7260cbeb4..34c76297ee 100755 --- a/phpmyfaq/src/phpMyFAQ/Faq.php +++ b/phpmyfaq/src/phpMyFAQ/Faq.php @@ -2450,15 +2450,7 @@ public function renderOpenQuestions(): string $mail = new Mail($this->config); $query = sprintf( - " - SELECT - COUNT(id) AS num - FROM - %sfaqquestions - WHERE - lang = '%s' - AND - is_visible != 'Y'", + "SELECT COUNT(id) AS num FROM %sfaqquestions WHERE lang = '%s' AND is_visible != 'Y'", Database::getTablePrefix(), $this->config->getLanguage()->getLanguage() ); @@ -2478,17 +2470,7 @@ public function renderOpenQuestions(): string } $query = sprintf( - " - SELECT - * - FROM - %sfaqquestions - WHERE - lang = '%s' - AND - is_visible = 'Y' - ORDER BY - created ASC", + "SELECT * FROM %sfaqquestions WHERE lang = '%s' AND is_visible = 'Y' ORDER BY created ASC", Database::getTablePrefix(), $this->config->getLanguage()->getLanguage() ); @@ -2503,14 +2485,14 @@ public function renderOpenQuestions(): string '