pg_NumRows -> pg_num_rows
[infodrom.org/www.zeitungsliste.de] / lib / search.inc
index 798607a..2ae85c1 100644 (file)
@@ -13,10 +13,10 @@ function search_zeitungen($keyword)
 
   if (($sth = db_query($query)) === false) return array();
 
-  if (pg_NumRows($sth) == 0) return array();
+  if (pg_num_rows($sth) == 0) return array();
 
   $ret = array();
-  for ($i=0; $i < pg_NumRows($sth); $i++) {
+  for ($i=0; $i < pg_num_rows($sth); $i++) {
     $row = pg_fetch_array($sth, $i);
 
     $ret[] = sprintf('<a href="%szeitung/%d.html">%s</a>, %s',
@@ -37,10 +37,10 @@ function search_tags($keyword)
 
   if (($sth = db_query($query)) === false) return array();
 
-  if (pg_NumRows($sth) == 0) return array();
+  if (pg_num_rows($sth) == 0) return array();
 
   $ret = array();
-  for ($i=0; $i < pg_NumRows($sth); $i++) {
+  for ($i=0; $i < pg_num_rows($sth); $i++) {
     $row = pg_fetch_array($sth, $i);
 
     $ret[] = sprintf('Tag <a href="%stag/%s.html">%s</a>',
@@ -61,10 +61,10 @@ function search_topics($keyword)
 
   if (($sth = db_query($query)) === false) return array();
 
-  if (pg_NumRows($sth) == 0) return array();
+  if (pg_num_rows($sth) == 0) return array();
 
   $ret = array();
-  for ($i=0; $i < pg_NumRows($sth); $i++) {
+  for ($i=0; $i < pg_num_rows($sth); $i++) {
     $row = pg_fetch_array($sth, $i);
 
     $ret[] = sprintf('Diskussion <a href="%stopic/%d.html">%s</a>',