Removed "affected rows"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user