Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Jan 9, 2020
1 parent c2b9919 commit 292e43e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions administrator/components/com_trash/Model/TrashModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public function trash($ids = array())
}

$query = $db->getQuery(true)
->delete($db->quoteName($tn))
->where( $column . ' = -2');
->delete($db->quoteName($tn))
->where($column . ' = -2');

$db->setQuery($query);

Expand Down Expand Up @@ -179,13 +179,12 @@ public function getItems()

$fields = $db->getTableColumns($tn);

// only work with the tables that have a state or published column
// Only work with the tables that have either a state or a published column
if (!(isset($fields['state'])) && !(isset($fields['published'])))
{
unset($tables[$i]);
continue;
}

}

foreach ($tables as $tn)
Expand All @@ -205,7 +204,7 @@ public function getItems()
$query = $db->getQuery(true)
->select('COUNT(*)')
->from($db->quoteName($tn))
->where( $column . ' = -2');
->where($column . ' = -2');

$db->setQuery($query);

Expand Down

0 comments on commit 292e43e

Please sign in to comment.