Issue Bug Closed

#18064Bogus check in handler_getFromTableList

Oliver Klee 01/28/08, 13:38 updated 06/27/08, 15:20

Description

From class.ux_t3lib_db.php in the current trunk:

function handler_getFromTableList($tableList)    {
    $key = $tableList;
    if (!isset($this->cache_handlerKeyFromTableList[$key]))    {
            // Get tables separated:
$_tableList = $tableList;
$tableArray = $this->SQLparser->parseFromTables($_tableList);
            // If success, traverse the tables:
if (is_array($tableArray) && count($tableArray)) {
foreach($tableArray as $vArray) {
                    // Find handler key, select “_DEFAULT” if none is specifically configured:
$handlerKey = $this->table2handlerKeys[$vArray[‘table’]] ? $this->table2handlerKeys[$vArray[‘table’]] : ‘_DEFAULT’;
                    // In case of separate handler keys for joined tables:
if ($outputHandlerKey && $handlerKey != $outputHandlerKey) {
die(‘DBAL fatal error: Tables in this list “’.$tableList.’” didn\‘t use the same DB handler!’);
}

$outpuHandlerKey is never intialized. So the if never is triggered.

(issue imported from #M7295)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.