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