Project

General

Profile

Bug #24057 » 16392_followup.diff

Administrator Admin, 2010-12-01 10:49

View differences:

class.ux_t3lib_db.php (working copy)
// Mapping table names in reverse, first getting list of real table names:
$tMap = array();
foreach ($this->mapping as $tN => $tMapInfo) {
if (isset($tMapInfo['mapTableName'])) $tMap[$tMapInfo['mapTableName']] = $tN;
if (isset($tMapInfo['mapTableName'])) {
$tMap[$tMapInfo['mapTableName']] = $tN;
}
}
// Do mapping:
$newList = array();
foreach ($whichTables as $tN) {
if (isset($tMap[$tN])) $tN = $tMap[$tN];
$newList[$tN] = $tN;
foreach ($whichTables as $tN => $tDefinition) {
if (isset($tMap[$tN])) {
$tN = $tMap[$tN];
}
$newList[$tN] = $tDefinition;
}
$whichTables = $newList;
(2-2/2)