Move code into conditional
authorJoey Schulze <joey@infodrom.org>
Thu, 1 May 2008 06:18:32 +0000 (06:18 +0000)
committerJoey Schulze <joey@infodrom.org>
Thu, 1 May 2008 06:18:32 +0000 (06:18 +0000)
src/InfoCon/hwdb/component.wml

index f869835..6ed9bbb 100644 (file)
@@ -64,7 +64,6 @@
 
     if (pg_NumRows ($sth) > 0) {
       echo "<h3>Use History</h3>\n";
-    }
 
     for ($nr=0; $nr < pg_NumRows ($sth); $nr++) {
       $row = pg_fetch_array ($sth, $nr);
@@ -80,6 +79,7 @@
         printf (" (%s)", $row['usage']);
       }
     }
+    }
   }
 ?>