remove all mysql_error() instances as errors are handled by query_appdb()
This commit is contained in:
@@ -161,9 +161,7 @@ if(strcasecmp($categoryId, "any") == 0)
|
||||
ORDER BY count DESC LIMIT $topNumber";
|
||||
}
|
||||
|
||||
$result = query_appdb($sVoteQuery);
|
||||
|
||||
if($result)
|
||||
if($result = query_appdb($sVoteQuery))
|
||||
{
|
||||
echo html_frame_start("", "90%", '', 0);
|
||||
echo html_table_begin("width='100%' align=center");
|
||||
@@ -192,10 +190,6 @@ if($result)
|
||||
echo "<center><a href='help/?topic=voting'>What does this screen mean?</a></center>\n";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Error: " . mysql_error();
|
||||
}
|
||||
|
||||
apidb_footer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user