Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9668a455f3 |
@@ -11,6 +11,7 @@ use Contao\ModuleModel;
|
||||
use Contao\StringUtil;
|
||||
use Doctrine\DBAL\ArrayParameterType;
|
||||
use Doctrine\DBAL\Connection;
|
||||
use Doctrine\DBAL\ParameterType;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
@@ -55,7 +56,7 @@ class EventFilterController extends AbstractFrontendModuleController
|
||||
ORDER BY e.startTime ASC
|
||||
SQL,
|
||||
[$today, $today],
|
||||
[\PDO::PARAM_INT, \PDO::PARAM_INT],
|
||||
[ParameterType::INTEGER, ParameterType::INTEGER],
|
||||
)->fetchFirstColumn();
|
||||
} else {
|
||||
$rows = $this->connection->executeQuery(
|
||||
@@ -70,7 +71,7 @@ class EventFilterController extends AbstractFrontendModuleController
|
||||
ORDER BY e.startTime ASC
|
||||
SQL,
|
||||
[$calendarIds, $today, $today],
|
||||
[ArrayParameterType::INTEGER, \PDO::PARAM_INT, \PDO::PARAM_INT],
|
||||
[ArrayParameterType::INTEGER, ParameterType::INTEGER, ParameterType::INTEGER],
|
||||
)->fetchFirstColumn();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user