diff --git a/typo3/sysext/core/Classes/Cache/Backend/RedisBackend.php b/typo3/sysext/core/Classes/Cache/Backend/RedisBackend.php index 4330bcc3acdec9afd23d941ae472f33e266a1439..32dfc73d544e21cc72772526238a73d8a7dbb62f 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/RedisBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/RedisBackend.php @@ -168,7 +168,7 @@ class RedisBackend extends AbstractBackend implements TaggableBackendInterface throw new \TYPO3\CMS\Core\Cache\Exception('The given password was not accepted by the redis server.', 1279765134); } } - if ($this->database > 0) { + if ($this->database >= 0) { $success = $this->redis->select($this->database); if (!$success) { throw new \TYPO3\CMS\Core\Cache\Exception('The given database "' . $this->database . '" could not be selected.', 1279765144);