Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resend account notification #529

Merged
merged 8 commits into from
Dec 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
linting
  • Loading branch information
chris18890 authored Dec 13, 2023
commit d165e91f6eb280f1a8634e2d85f46025b5acb284
8 changes: 5 additions & 3 deletions crm/modules/member/command.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,10 @@ function command_member_renotify() {
foreach ($_POST['cid'] as $key => $cid) {
$sql = "
SELECT *
FROM `user` JOIN contact USING(cid)
WHERE cid=".$cid;
FROM `user`
JOIN contact USING(`cid`)
WHERE `cid`='$cid'
";
print_r($sql);
drid marked this conversation as resolved.
Show resolved Hide resolved
$res = mysqli_query($db_connect, $sql);
if (!$res) crm_error(mysqli_error($res));
Expand All @@ -600,4 +602,4 @@ function command_member_renotify() {
mail($user['email'], "Welcome to " . get_org_name(), $content, $headers);
}
return crm_url('members&tab=renotify');
}
}