summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-12-26 16:09:15 +0100
committerPhilip Häusler <msquare@notrademark.de>2011-12-26 16:09:15 +0100
commitd0bb9fbbebf2112b7330476a471c18e06222634b (patch)
treeabc17d687448e1844c0cff3ca953bbf54f17d7be /includes
parent1852a2a1ae190391d47d5ce15398bc0c02c7071b (diff)
parent7154097581f231753005aaabdc12d00173b7ce27 (diff)
Merge branch 'master' of https://vcs.wybt.net/engelsystem/git
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/guest_faq.php25
1 files changed, 11 insertions, 14 deletions
diff --git a/includes/pages/guest_faq.php b/includes/pages/guest_faq.php
index e639731b..9d65bb36 100644
--- a/includes/pages/guest_faq.php
+++ b/includes/pages/guest_faq.php
@@ -1,22 +1,19 @@
<?php
function guest_faq() {
$html = "";
- $faqs = sql_select("SELECT * FROM `FAQ`");
+ if ($_SESSION['Sprache'] == "DE") {
+ $faqs = sql_select("SELECT * FROM `FAQ` WHERE `Sprache` = 'de'");
+ } else {
+ $faqs = sql_select("SELECT * FROM `FAQ` WHERE `Sprache` = 'en'");
+ }
+
foreach ($faqs as $faq) {
$html .= "<dl>";
- 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 .= sprintf(
+ '<dt>%s</dt> <dd>%s</dd>',
+ $faq['Frage'],
+ $faq['Antwort']
+ );
$html .= "</dl>";
}
return $html;