bug 1221: properly name the other part of the assurance
authorMichael Tänzer <neo@nhng.de>
Mon, 14 Apr 2014 22:52:07 +0000 (00:52 +0200)
committerMichael Tänzer <neo@nhng.de>
Mon, 14 Apr 2014 22:52:07 +0000 (00:52 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/notary.inc.php

index 1a9c2ce..f155d25 100644 (file)
                $res = get_given_assurances(intval($userid));
                while($row = mysql_fetch_assoc($res))
                {
-                       $fromuser = get_user (intval($row['to']));
+                       $assuree = get_user (intval($row['to']));
                        $apoints = calc_experience ($row,$points,$experience,$sum_experience,$revoked);
-                       $name = show_user_link ($fromuser['fname']." ".$fromuser['lname'],intval($row['to']));
-                       $email = show_email_link ($fromuser['email'],intval($row['to']));
+                       $name = show_user_link ($assuree['fname']." ".$assuree['lname'],intval($row['to']));
+                       $email = show_email_link ($assuree['email'],intval($row['to']));
                        output_assurances_row (intval($row['id']),$row['date'],$row['when'],$email,$name,$apoints,intval($row['points']),$row['location'],$row['method']==""?"":_(sprintf("%s", $row['method'])),$experience,$userid,$support,$revoked);
                }
        }