Skip to content

Commit

Permalink
Fix #26, deleting emails
Browse files Browse the repository at this point in the history
Fatal error: Class 'Jrequest' not found when deleting emails
  • Loading branch information
Anderson Grüdtner Martins committed Oct 7, 2014
1 parent 4aa719e commit e9f894a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com_osdownloads/admin/controllers/emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class OSDownloadsControllerEmails extends JControllerLegacy
{
public function delete()
{
$id_arr = Jrequest::getVar('cid');
$app = JFactory::getApplication();

$id_arr = $app->input->getVar('cid');
$str_id = implode(',', $id_arr);
$db = JFactory::getDBO();
$query = "DELETE FROM `#__osdownloads_emails` WHERE id IN (".$str_id.")";
Expand Down

0 comments on commit e9f894a

Please sign in to comment.