Convert spider detection to datastructure and loop
[infodrom.org/www.zeitungsliste.de] / lib / bookmarks.inc
index 842db68..f788245 100644 (file)
@@ -54,7 +54,7 @@ function format_bookmarks()
 
   $sth = db_query($query);
 
-  if ($sth === false || pg_NumRows ($sth) == 0)
+  if ($sth === false || pg_num_rows ($sth) == 0)
     return ' ';
 
 $rowf = '<tr>
@@ -68,8 +68,8 @@ $rowf = '<tr>
 <a href="zeitung/%d.html">%s</a></td>
 </tr>';
 
-  $ret .= '<table class="bookmarks" width="100%", alt=ยจ">';
-  for ($n=0; $n < pg_NumRows ($sth); $n++) {
+  $ret .= '<table class="bookmarks" width="100%" alt="">';
+  for ($n=0; $n < pg_num_rows ($sth); $n++) {
     $row = pg_fetch_array ($sth, $n);
 
     if (javascript_ok()) {