Skip to content

Commit

Permalink
fix for #45
Browse files Browse the repository at this point in the history
  • Loading branch information
svewap committed Apr 17, 2024
1 parent 98f1a3a commit 9c9e78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Operation/HasFailedSchedulerTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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);
}
Expand Down

0 comments on commit 9c9e78d

Please sign in to comment.