Skip to content

Commit

Permalink
Uset setLimit() to set query limit
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Sep 25, 2019
1 parent 81d0526 commit 7ad6ce4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions administrator/components/com_privacy/Model/ExportModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ public function collectDataForExportRequest($id = null)
$db->getQuery(true)
->select('id')
->from($db->quoteName('#__users'))
->where($db->quoteName('email') . ' = ' . $db->quote($table->email)),
0,
1
->where($db->quoteName('email') . ' = ' . $db->quote($table->email))
->setLimit(1)
)->loadResult();

$user = $userId ? User::getInstance($userId) : null;
Expand Down
5 changes: 2 additions & 3 deletions administrator/components/com_privacy/Model/RemoveModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ public function removeDataForRequest($id = null)
$db->getQuery(true)
->select('id')
->from($db->quoteName('#__users'))
->where($db->quoteName('email') . ' = ' . $db->quote($table->email)),
0,
1
->where($db->quoteName('email') . ' = ' . $db->quote($table->email))
->setLimit(1)
)->loadResult();

$user = $userId ? User::getInstance($userId) : null;
Expand Down
5 changes: 2 additions & 3 deletions administrator/components/com_privacy/Model/RequestModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,8 @@ public function notifyUserAdminCreatedRequest($id)
$db->getQuery(true)
->select('id')
->from($db->quoteName('#__users'))
->where($db->quoteName('email') . ' = ' . $db->quote($table->email)),
0,
1
->where($db->quoteName('email') . ' = ' . $db->quote($table->email))
->setLimit(1)
)->loadResult();

if ($userId)
Expand Down

0 comments on commit 7ad6ce4

Please sign in to comment.