Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
michb committed Feb 22, 2024
1 parent 242848e commit 1f9c9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/contao/models/TagsRelModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function findPublishedRelatedNewsByID( $id, $aPids, $blnFeatured=n

if( !static::isPreviewMode($aOptions) ) {
$time = Date::floorToMinute();
$arrColumns[] = "$t.published='1' AND ($t.start='' OR $t.start<=$time) AND ($t.stop='' OR $t.stop>$time)";
$aColumns[] = "$t.published='1' AND ($t.start='' OR $t.start<=$time) AND ($t.stop='' OR $t.stop>$time)";
}

if( !isset($aOptions['order']) ) {
Expand Down Expand Up @@ -179,7 +179,7 @@ public static function findPublishedNewsByTags( $tagsIds, $aPids, $blnFeatured=n

if( !static::isPreviewMode($aOptions) ) {
$time = Date::floorToMinute();
$arrColumns[] = "$t.published='1' AND ($t.start='' OR $t.start<=$time) AND ($t.stop='' OR $t.stop>$time)";
$aColumns[] = "$t.published='1' AND ($t.start='' OR $t.start<=$time) AND ($t.stop='' OR $t.stop>$time)";
}

if( !isset($aOptions['order']) ) {
Expand Down

0 comments on commit 1f9c9b7

Please sign in to comment.