Skip to content

Commit 6ecc80d

Browse files
committed
fix: corrected query for fetching sticky FAQs, closes #3518
1 parent e3fbf24 commit 6ecc80d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

phpmyfaq/src/phpMyFAQ/Faq.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,6 @@ public function getStickyFaqsData(): array
14881488
{
14891489
global $sids;
14901490

1491-
$now = date('YmdHis');
14921491
$queryHelper = new QueryHelper($this->user, $this->groups);
14931492
$query = sprintf(
14941493
"
@@ -1518,10 +1517,6 @@ public function getStickyFaqsData(): array
15181517
fd.id = fdu.record_id
15191518
WHERE
15201519
fd.lang = '%s'
1521-
AND
1522-
fd.date_start <= '%s'
1523-
AND
1524-
fd.date_end >= '%s'
15251520
AND
15261521
fd.active = 'yes'
15271522
AND
@@ -1541,8 +1536,6 @@ public function getStickyFaqsData(): array
15411536
Database::getTablePrefix(),
15421537
Database::getTablePrefix(),
15431538
$this->configuration->getLanguage()->getLanguage(),
1544-
$now,
1545-
$now,
15461539
$queryHelper->queryPermission($this->groupSupport)
15471540
);
15481541

0 commit comments

Comments
 (0)