[BUGFIX] Dummy WHERE condition compatibility
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / Storage / Typo3DbBackend.php
index 05cc5a0..a76f821 100644 (file)
@@ -312,7 +312,7 @@ class Typo3DbBackend implements BackendInterface, \TYPO3\CMS\Core\SingletonInter
                return array(
                        'selectFields' => implode(' ', $statementParts['keywords']) . ' ' . implode(',', $statementParts['fields']),
                        'fromTable'    => implode(' ', $statementParts['tables']) . ' ' . implode(' ', $statementParts['unions']),
-                       'whereClause'  => (!empty($statementParts['where']) ? implode('', $statementParts['where']) : '1')
+                       'whereClause'  => (!empty($statementParts['where']) ? implode('', $statementParts['where']) : '1=1')
                                . (!empty($statementParts['additionalWhereClause'])
                                        ? ' AND ' . implode(' AND ', $statementParts['additionalWhereClause'])
                                        : ''