X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/1fa6effd48e98fd352a2a4e2e6221caa669abc81..6a7369d976274f0868b6aa3217e3fb42eab5e00f:/typo3/sysext/scheduler/Classes/Task/CachingFrameworkGarbageCollectionAdditionalFieldProvider.php diff --git a/typo3/sysext/scheduler/Classes/Task/CachingFrameworkGarbageCollectionAdditionalFieldProvider.php b/typo3/sysext/scheduler/Classes/Task/CachingFrameworkGarbageCollectionAdditionalFieldProvider.php index 6b658b31f57..d70c0c31aa4 100644 --- a/typo3/sysext/scheduler/Classes/Task/CachingFrameworkGarbageCollectionAdditionalFieldProvider.php +++ b/typo3/sysext/scheduler/Classes/Task/CachingFrameworkGarbageCollectionAdditionalFieldProvider.php @@ -36,8 +36,8 @@ class CachingFrameworkGarbageCollectionAdditionalFieldProvider implements \TYPO3 $taskInfo['scheduler_cachingFrameworkGarbageCollection_selectedBackends'] = array(); if ($parentObject->CMD === 'add') { // In case of new task, set to dbBackend if it's available - if (in_array('TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend', $this->getRegisteredBackends())) { - $taskInfo['scheduler_cachingFrameworkGarbageCollection_selectedBackends'][] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend'; + if (in_array(\TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class, $this->getRegisteredBackends())) { + $taskInfo['scheduler_cachingFrameworkGarbageCollection_selectedBackends'][] = \TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class; } } elseif ($parentObject->CMD === 'edit') { // In case of editing the task, set to currently selected value @@ -62,7 +62,7 @@ class CachingFrameworkGarbageCollectionAdditionalFieldProvider implements \TYPO3 * * @param array $submittedData Reference to the array containing the data submitted by the user * @param \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject Reference to the calling object (Scheduler's BE module) - * @return boolean TRUE if validation was ok (or selected class is not relevant), FALSE otherwise + * @return bool TRUE if validation was ok (or selected class is not relevant), FALSE otherwise */ public function validateAdditionalFields(array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject) { $validData = TRUE;