$sth = db_query($query);
- if ($sth === false || pg_NumRows ($sth) == 0)
+ if ($sth === false || pg_num_rows ($sth) == 0)
return false;
$ret = '<p><ul>';
- for ($n=0; $n < pg_NumRows ($sth); $n++) {
+ for ($n=0; $n < pg_num_rows ($sth); $n++) {
$row = pg_fetch_array ($sth, $n);
$ret .= sprintf('<li><a href="%szeitung/%d.html">%s</a></li>',
$cfg['basepath'], $row['zeitung'], $row['name']);