New bots Xmarks and spbot
[infodrom.org/www.zeitungsliste.de] / lib / tags.inc
index af42106..1a470fa 100644 (file)
@@ -9,7 +9,7 @@ function format_tags($zid)
   if (($sth = db_query($query)) === false) return;
 
   $tags = array();
-  for ($i=0; $i < pg_NumRows ($sth); $i++) {
+  for ($i=0; $i < pg_num_rows ($sth); $i++) {
     $row = pg_fetch_array ($sth, $i);
     $tags[$row['id']] = $row['tagname'];
   }
@@ -22,9 +22,9 @@ function format_tags($zid)
 
   if (($sth = db_query($query)) === false) return;
 
-  if (pg_NumRows($sth) > 0) {
+  if (pg_num_rows($sth) > 0) {
     $ret_mytags = '<p class="tagcloud">';
-    for ($i=0; $i < pg_NumRows ($sth); $i++) {
+    for ($i=0; $i < pg_num_rows ($sth); $i++) {
       $row = pg_fetch_array ($sth, $i);
       if (javascript_ok())
        $link = sprintf('href="%stags.html" onclick="return tag_action(\'del\',%d,%d);"',
@@ -218,7 +218,7 @@ function ajax_tag_exists()
   if ($sth === false)
     return true; // eigentlich false, aber da true=exists einen Fehler liefert...
 
-  if (pg_NumRows($sth) == 0)
+  if (pg_num_rows($sth) == 0)
     return false;
 
   return true;