Cosmetic: Code cleanup
authorshort <>
Fri, 17 Aug 2001 23:17:07 +0000 (23:17 +0000)
committershort <>
Fri, 17 Aug 2001 23:17:07 +0000 (23:17 +0000)
index.php

index 62642dd..29902c5 100644 (file)
--- a/index.php
+++ b/index.php
 <?php
 
        $getdate=getdate();
-       unset($unset_month);
        $year=$getdate["year"];
 
        $result=db_query("select distinct year from $tb_obsah order by year");
-       while ($row=mysql_fetch_array($result))
+       while (($row=mysql_fetch_array($result)))
                print("\t<li><a href=\"title.php?year=".$row["year"]."\">Roèník ".$row["year"]."</a></li>\n");
        mysql_free_result($result);
 
@@ -45,6 +44,7 @@
 <p>&nbsp;</p>
 <?php
 
+       unset($unset_month);
        title(&$year,&$unset_month);
 
 ?>