* Fix bug #34677.
This commit is contained in:
@@ -911,7 +911,7 @@ class transferModel extends model
|
||||
preg_match_all('/[`"]' . $this->config->db->prefix . $model .'[`"] AS ([\w]+) /', $queryCondition, $matches);
|
||||
if(isset($matches[1][0])) $selectKey = "{$matches[1][0]}.id";
|
||||
|
||||
$stmt = $this->dbh->query($queryCondition . ($this->post->exportType == 'selected' ? " AND $selectKey IN({$this->cookie->checkedItem})" : ''));
|
||||
$stmt = $this->dbh->query($queryCondition . ($this->post->exportType == 'selected' ? " AND $selectKey IN(" . ($this->cookie->checkedItem ? $this->cookie->checkedItem : '0') . ")" : ''));
|
||||
while($row = $stmt->fetch())
|
||||
{
|
||||
if($selectKey !== 't1.id' and isset($row->$model) and isset($row->id)) $row->id = $row->$model;
|
||||
|
||||
Reference in New Issue
Block a user