Skip to content

Commit

Permalink
Fix wrong replacement; closes #16726
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Apr 8, 2024
1 parent a0ec58e commit dd82f09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RSSFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ public static function addVisibilityJoins($forceall = false)
$it = new \DBmysqlIterator(null);
$it->buildQuery($criteria);
$sql = $it->getSql();
$sql = str_replace(
'SELECT * FROM ' . $DB->quoteName(self::getTable()) . ' ',
$sql = trim(str_replace(
'SELECT * FROM ' . $DB->quoteName(self::getTable()),
'',
$sql
);
));
return $sql;
}

Expand Down

0 comments on commit dd82f09

Please sign in to comment.