diff options
Diffstat (limited to 'categories.php')
-rw-r--r-- | categories.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/categories.php b/categories.php index bb08275..55f669e 100644 --- a/categories.php +++ b/categories.php @@ -6,7 +6,7 @@ require_once 'class.db.category.php'; - $sql = "SELECT name, description FROM category ORDER BY name;"; + $sql = "SELECT c.name, cd.description FROM category c LEFT OUTER JOIN category_description cd ON cd.category = c.id AND cd.lingua = ".$db->quote($lingua)." ORDER BY c.name;"; $arr = $db->getAssoc($sql); $str = gettext('CATEGORIES'); @@ -14,7 +14,7 @@ echo "<div class='about'>\n"; - echo "<hr class='pkg_rule' style='margin-bottom: 15px; margin-top: 15px;'/>\n"; + echo "<hr class='pkg_rule' style='margin-bottom: 15px; margin-top: 15px;'>\n"; echo "<table style='padding-bottom: 25px;' cellpadding='4' cellspacing='0'>\n"; |