Skip to content
Snippets Groups Projects
Unverified Commit d3b44cc3 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #18702 from eileenmcnaughton/leak8

#2073 Fix use of legacy leaky method in tested code
parents 2a7b7b2b fa00d91f
Branches
Tags
No related merge requests found
......@@ -2270,8 +2270,7 @@ LEFT JOIN civicrm_contribution contribution ON ( componentPayment.contribution_
WHERE membership_id=$membership->id
ORDER BY id DESC
LIMIT 1;";
$dao = new CRM_Core_DAO();
$dao->query($sql);
$dao = CRM_Core_DAO::executeQuery($sql);
if ($dao->fetch()) {
if (!empty($dao->membership_type_id)) {
$membership->membership_type_id = $dao->membership_type_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment