Fixed small bug that reset a Friend's join_date when they donated in certain circumstances
Signed-off-by: Edouard Poitras <edouard@eclipse.org>
diff --git a/thankyou.php b/thankyou.php
index 59b8aa5..eb6e7ab 100644
--- a/thankyou.php
+++ b/thankyou.php
@@ -132,6 +132,7 @@
if ($friend_id != 0) { // User Already Exist
// Lets Update the Friend Information
$new_friend = new Friend();
+ $new_friend->selectFriend($friend_id); // Want to keep existing date_joined
$new_friend->setFirstName($data['firstname']);
$new_friend->setLastName($data['lastname']);
$new_friend->setIsAnonymous($data['anonymous']);