[BUGFIX] Fix undefined variables in Typo3DBBackend::parseOrderings
authorOliver Klee <typo3-coding@oliverklee.de>
Mon, 30 Apr 2012 22:50:29 +0000 (00:50 +0200)
committerMarc Bastian Heinrichs <typo3@mbh-software.de>
Mon, 30 Apr 2012 22:50:29 +0000 (00:50 +0200)
Tx_Extbase_Persistence_Storage_Typo3DbBackend::parseOrderings
passes the potentially not defined $className and $tableName
to convertPropertyNameToColumnName.

Fixes: #34924

Change-Id: Ifd1841d899efa4d56784ba38d06bfa86bd9adf58
Branches: 6.0, 4.7, 1.4, 1.3

typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php

index e9bef50..1fc50db 100644 (file)
@@ -872,6 +872,8 @@ class Tx_Extbase_Persistence_Storage_Typo3DbBackend implements Tx_Extbase_Persis
                                default:
                                        throw new Tx_Extbase_Persistence_Exception_UnsupportedOrder('Unsupported order encountered.', 1242816074);
                        }
+                       $className = '';
+                       $tableName = '';
                        if ($source instanceof Tx_Extbase_Persistence_QOM_SelectorInterface) {
                                $className = $source->getNodeTypeName();
                                $tableName = $this->dataMapper->convertClassNameToTableName($className);