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.php32
1 files changed, 10 insertions, 22 deletions
diff --git a/includes/pages/guest_faq.php b/includes/pages/guest_faq.php
index 48e75d16..c4bcd0bb 100644
--- a/includes/pages/guest_faq.php
+++ b/includes/pages/guest_faq.php
@@ -2,29 +2,17 @@
function guest_faq() {
$html = "";
$faqs = sql_select("SELECT * FROM `FAQ`");
- foreach ($faqs as $faq)
- if ($faq['Antwort'] != "") {
- list ($frage_de, $frage_en) = explode('<br />', $faq['Frage']);
- list ($antwort_de, $antwort_en) = explode('<br />', $faq['Antwort']);
- $html .= "<dl>";
- if ($_SESSION['Sprache'] == "DE") {
- $html .= "<dt>" . $frage_de . "</dt>";
- $html .= "<dd>" . $antwort_de . "</dd>";
- } else {
- $html .= "<dt>" . $frage_en . "</dt>";
- $html .= "<dd>" . $antwort_en . "</dd>";
- }
- $html .= "</dl>";
+ foreach ($faqs as $faq) {
+ $html .= "<dl>";
+ if ($_SESSION['Sprache'] == "DE") {
+ $html .= "<dt>" . $faq['Frage_de'] . "</dt>";
+ $html .= "<dd>" . $faq['Antwort_de'] . "</dd>";
+ } else {
+ $html .= "<dt>" . $faq['Frage_en'] . "</dt>";
+ $html .= "<dd>" . $faq['Antwort_en'] . "</dd>";
}
+ $html .= "</dl>";
+ }
return $html;
}
-
-function noAnswer() {
- global $con;
-
- $SQL = "SELECT UID FROM Questions WHERE `AID`='0'";
- $Res = mysql_query($SQL, $con);
-
- return mysql_num_rows($Res);
-}
?>