Index: branches/unlabeled/unlabeled-1.26.8/core/kernel/utility/temp_handler.php =================================================================== diff -u -N -r6437 -r7730 --- branches/unlabeled/unlabeled-1.26.8/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 6437) +++ branches/unlabeled/unlabeled-1.26.8/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 7730) @@ -370,7 +370,7 @@ if (is_array($ids)) { $ids = join(',', $ids); } - + $table_sig = $master['TableName'].(isset($master['Constrain']) ? $master['Constrain'] : ''); if ($ids != '' && !in_array($table_sig, $this->CopiedTables)) { @@ -388,12 +388,12 @@ $query = 'INSERT INTO '.$this->GetTempName($master['TableName']).' SELECT * FROM '.$master['TableName'].' - WHERE '.$key_field.' IN ('.$ids.')'; + WHERE '.$key_field.' IN ('.$ids.')'; if (isset($master['Constrain'])) $query .= ' AND '.$master['Constrain']; $this->Conn->Query($query); - + $this->CopiedTables[] = $table_sig; - + $query = 'SELECT '.$master['IdField'].' FROM '.$master['TableName'].' WHERE '.$key_field.' IN ('.$ids.')'; if (isset($master['Constrain'])) $query .= ' AND '.$master['Constrain'];