summaryrefslogtreecommitdiff
path: root/includes/pages/guest_faq.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/guest_faq.php')
-rw-r--r--includes/pages/guest_faq.php25
1 files changed, 14 insertions, 11 deletions
diff --git a/includes/pages/guest_faq.php b/includes/pages/guest_faq.php
index 9d65bb36..e639731b 100644
--- a/includes/pages/guest_faq.php
+++ b/includes/pages/guest_faq.php
@@ -1,19 +1,22 @@
<?php
function guest_faq() {
$html = "";
- if ($_SESSION['Sprache'] == "DE") {
- $faqs = sql_select("SELECT * FROM `FAQ` WHERE `Sprache` = 'de'");
- } else {
- $faqs = sql_select("SELECT * FROM `FAQ` WHERE `Sprache` = 'en'");
- }
-
+ $faqs = sql_select("SELECT * FROM `FAQ`");
foreach ($faqs as $faq) {
$html .= "<dl>";
- $html .= sprintf(
- '<dt>%s</dt> <dd>%s</dd>',
- $faq['Frage'],
- $faq['Antwort']
- );
+ if ($_SESSION['Sprache'] == "DE") {
+ $html .= sprintf(
+ '<dt>%s</dt> <dd>%s</dd>',
+ $faq['Frage_de'],
+ $faq['Antwort_de']
+ );
+ } else {
+ $html .= sprintf(
+ '<dt>%s</dt> <dd>%s</dd>',
+ $faq['Frage_en'],
+ $faq['Antwort_en']
+ );
+ }
$html .= "</dl>";
}
return $html;