- $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" : "")