From c826b3b46a791156df443846963a159e1a965f15 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 14 Aug 2006 00:32:33 +0000 Subject: [PATCH] bug #93 --- www/wot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/wot.php b/www/wot.php index fcb9ba2..7472a03 100644 --- a/www/wot.php +++ b/www/wot.php @@ -186,7 +186,7 @@ if($oldid == 6) { $max = maxpoints(); - $newpoints = intval($_POST['points']); + $awarded = $newpoints = intval($_POST['points']); if($newpoints > $max) $newpoints = $max; $query = "select sum(`points`) as `total` from `notary` where `to`='".$_SESSION['_config']['notarise']['id']."' group by `to`"; @@ -246,7 +246,7 @@ $query = "insert into `notary` set `from`='".$_SESSION['profile']['id']."', `to`='".$_SESSION['_config']['notarise']['id']."', - `points`='$newpoints', + `points`='$newpoints', `awardeded`='$awarded', `location`='".mysql_escape_string(stripslashes($_POST['location']))."', `date`='".mysql_escape_string(stripslashes($_POST['date']))."', `when`=NOW()"; @@ -270,7 +270,7 @@ $addpoints = 1; $query = "insert into `notary` set `from`='".$_SESSION['profile']['id']."', `to`='".$_SESSION['profile']['id']."', - `points`='$addpoints', + `points`='$addpoints', `awarded`='$addpoints', `location`='".mysql_escape_string(stripslashes($_POST['location']))."', `date`='".mysql_escape_string(stripslashes($_POST['date']))."', `method`='Administrative Increase',