diff --git a/Classes/Operation/HasFailedSchedulerTask.php b/Classes/Operation/HasFailedSchedulerTask.php index 19ecfaf..7ca8102 100644 --- a/Classes/Operation/HasFailedSchedulerTask.php +++ b/Classes/Operation/HasFailedSchedulerTask.php @@ -31,7 +31,6 @@ class HasFailedSchedulerTask implements IOperation, SingletonInterface */ public function execute($parameter = []) { - $typo3Version = GeneralUtility::makeInstance(Typo3Version::class); $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_scheduler_task'); $queryBuilder ->count('uid') @@ -44,7 +43,8 @@ public function execute($parameter = []) $queryBuilder->expr()->eq('deleted', $queryBuilder->createNamedParameter(0, Connection::PARAM_INT)) ); - $count = $queryBuilder->executeQuery()->fetchFirstColumn(0); + + $count = $queryBuilder->executeQuery()->fetchOne(); return new OperationResult(true, $count > 0); }