* fix for pro4.7

This commit is contained in:
wangyidong
2015-07-28 16:25:51 +08:00
parent 24c838edf9
commit 45f0e31e29
+6 -3
View File
@@ -16,9 +16,12 @@ class devModel extends model
foreach($datatables as $table)
{
$table = current($table);
$subTable = substr($table, strpos($table, '_') + 1);
$group = zget($this->config->dev->group, $subTable, 'other');
$tables[$group][$subTable] = $table;
if(strpos($table, $this->config->db->prefix) !== false)
{
$subTable = substr($table, strpos($table, '_') + 1);
$group = zget($this->config->dev->group, $subTable, 'other');
$tables[$group][$subTable] = $table;
}
}
return $tables;
}