Skip to content

Commit

Permalink
Fix the Akeeba Subs 7 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas K. Dionysopoulos committed Jul 12, 2019
1 parent 0e22f4d commit 3b95de6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugins/datacompliance/akeebasubs/akeebasubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function onDataComplianceExportUser(int $userID): SimpleXMLElement
$query = $db->getQuery(true)
->select('*')
->from($db->qn('#__akeebasubs_users'))
->where($db->qn('akeebasubs_user_id') . ' = ' . $db->q($userID));
->where($db->qn('user_id') . ' = ' . $db->q($userID));

try
{
Expand Down Expand Up @@ -349,11 +349,17 @@ private function anonymizeUser($user_id)
$query = $db->getQuery(true)
->select('*')
->from($db->qn('#__akeebasubs_users'))
->where($db->qn('akeebasubs_user_id') . ' = ' . $db->q($user_id));
->where($db->qn('user_id') . ' = ' . $db->q($user_id));

try
{
$userData = $db->setQuery($query)->loadAssoc();

if (empty($userData))
{
return [$user_id];
}

$newData = [
'isbusiness' => 0,
'businessname' => '',
Expand Down

0 comments on commit 3b95de6

Please sign in to comment.