This commit is contained in:
caoyanyi
2023-04-26 15:26:47 +08:00
parent bccd7f677e
commit bf37b28784
2 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -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;