Even title page year (or all years) tables now also displayed from "title.php"
[www.energie.vellum.cz.git] / obsah.php
index aee9ede..922cd36 100644 (file)
--- a/obsah.php
+++ b/obsah.php
@@ -25,8 +25,8 @@
        print("<h1>$title_tail</h1>\n");
 
        $result=db_query("select year,month,month_last,contents from $tb_obsah"
-                       .($year  ? " where year='$year'"   : "")
-                       .($month ?   " and month='$month'" : "")
+                       .($year  ? " where year=$year"   : "")
+                       .($month ?   " and month=$month" : "")
                        ." order by year,month"
                        );
        if (!mysql_num_rows($result))