瀏覽代碼

[svn r12199] Fix a mistake with the last commif for this file

Julian Prud'homme 18 年之前
父節點
當前提交
3d6d1e9968
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      main/survey/survey_invite.php

+ 5 - 1
main/survey/survey_invite.php

@@ -245,7 +245,11 @@ function save_invitations($users_array, $invitation_title, $invitation_text, $re
 
 				// replacing the **link** part with a valid link for the user
 				$survey_link = $_configuration['root_web'].$_configuration['code_append'].'survey/'.'fillsurvey.php?course='.$_course['sysCode'].'&invitationcode='.$invitation_code;
-				$full_invitation_text = $invitation_text . $survey_link;
+				$full_invitation_text = str_ireplace('**link**', $survey_link ,$invitation_text, $replace_count);
+				if ($replace_count < 1)
+				{
+					$full_invitation_text = $full_invitation_text . $survey_link;
+				}
 
 				// optionally: finding the e-mail of the course user
 				if (is_numeric($value))