Skip to content

Commit

Permalink
removed obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
azett committed Oct 23, 2021
1 parent 1a51385 commit f4209dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fp-plugins/lastcomments/plugin.lastcomments.php
Expand Up @@ -35,14 +35,12 @@ function plugin_lastcomments_widget() {

if ($count = count($list)) {
while ($arr = array_pop($list)) {
theme_comments_filters($arr, $id);

$q = new FPDB_Query(array(
'id' => $arr ['entry']
), null);
// first element of the array is dropped, as it is the ID, which
// we already know
@list (, $entry) = $q->getEntry($query);
@list (, $entry) = $q->getEntry();

if (!$entry) {
$count--;
Expand Down

0 comments on commit f4209dc

Please sign in to comment.