#8 » Little modification
» Reported by arthurn | 09-14-2009, 11:04 PM
Information
Category None
Priority None
Status New
Assigned To Not Assigned
% Complete 0%

Timeline
arthurn reported this issue.
09-14-2009, 11:04 PM
The Problem
Code:
--- award.php    2009-03-08 00:32:10.000000000 +0600
+++ award1.php    2009-09-14 19:02:55.000000000 +0600
@@ -5,6 +5,13 @@
define('IN_MYBB', 1);
require_once './global.php';
$id=intval($_GET['id']);
+
+$query = $db->simple_select("awards_given", "COUNT(gid) AS awards_count", "gid='$id'");
+$awards_count = $db->fetch_field($query, "awards_count");
+if($awards_count != 1) {
+    $id = 0;
+}
+
//If we got an id, we're viewing a specific award
if ($id != '')
{

Latest Comments

No Comments have been left for this Report.

0 Comments