Removed "affected rows"

This commit is contained in:
Ice
2008-06-19 12:34:10 +00:00
parent 87e4a43359
commit 0b9200268a
2 changed files with 11 additions and 9 deletions

View File

@@ -163,13 +163,15 @@ function phpbb_fetch_posts($forum_from, $permissions, $number_of_posts, $text_le
forum_id';
$result = $db->sql_query_limit($sql, 1);
if ($db->sql_affectedrows() > 0)
$row = $db->sql_fetchrow($result);
if( !sizeof( $row ) )
{
$row = $db->sql_fetchrow($result);
$global_f = $row['forum_id'];
} else {
return array();
}
$global_f = $row['forum_id'];
}
@@ -526,4 +528,4 @@ function ap_validate($str) {
return $page_string;
}
?>
?>