* fix a bug for no table in trash.

This commit is contained in:
wyd621
2013-12-06 02:47:48 +00:00
parent ecee37a330
commit 2b174ea38b
+2
View File
@@ -243,6 +243,8 @@ class actionModel extends model
$objectIds = array_unique($objectIds);
$table = $this->config->objectTables[$objectType];
$field = $this->config->action->objectNameFields[$objectType];
if(!$table) continue;
$objectNames[$objectType] = $this->dao->select("id, $field AS name")->from($table)->where('id')->in($objectIds)->fetchPairs();
}