* fix bug.

This commit is contained in:
wangyidong
2017-01-22 15:38:45 +08:00
parent 34a5414b35
commit 37a82dd952
+1 -1
View File
@@ -1293,7 +1293,7 @@ class upgradeModel extends model
if($type == 'comment')
{
$comments = $this->dao->select('id,objectType,objectID,comment')->from(TABLE_ACTION)->where('comment')->like('%data/upload/%')->andWhere('id')->gt($lastID)->orderBy('id')->limit($limit)->fetchAll('id');
foreach($comments as $comment)
foreach($comments as $action)
{
$files = array();
preg_match_all('/"data\/upload\/.*1\/([0-9]{6}\/[^"]+)"/', $action->comment, $output);