X-Git-Url: http://git.jankratochvil.net/?p=www.energie.vellum.cz.git;a=blobdiff_plain;f=obsah.php;h=f1737c94abc96d92f5679edf587ac1f64b6e1c3d;hp=eb262e13fdfe5900c74f5125954f7f577bd62008;hb=5184524480f39a76f89f6de59c4a5f21c778ae33;hpb=9d92d5cb57115acbb6189fad1e99847123900fc6
diff --git a/obsah.php b/obsah.php
index eb262e1..f1737c9 100644
--- a/obsah.php
+++ b/obsah.php
@@ -28,9 +28,9 @@
print("
$title_tail
\n");
- $result=db_query("select year,month,month_last,contents from $tb_obsah"
- .($year ? " where year=$year" : "")
- .($month ? " and month=$month" : "")
+ $result=db_query("select year,month,month_last,contents from $tb_obsah where contents is not null"
+ .($year ? " and year=$year" : "")
+ .($month ? " and month=$month" : "")
." order by year,month"
);
if (!mysql_num_rows($result))