summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorJan-Philipp Litza <jplitza@sylar.(none)>2011-12-26 16:04:54 +0100
committerJan-Philipp Litza <jplitza@sylar.(none)>2011-12-26 16:04:54 +0100
commit7154097581f231753005aaabdc12d00173b7ce27 (patch)
tree2fdc6e62e01a8f271c2d249756762e9fd91f7754 /includes
parentbc471460fc8cce0bb9d8b5631e8d57fdec6a3b39 (diff)
database update script
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;