* Modify install and story report error.

This commit is contained in:
caoyanyi
2023-04-21 11:18:02 +08:00
parent e2d9b07915
commit 83cf8d0972
2 changed files with 112 additions and 114 deletions
+1 -1
View File
@@ -5357,7 +5357,7 @@ class storyModel extends model
{
if(!$this->session->storyOnlyCondition)
{
preg_match_all('/' . TABLE_STORY .' AS ([\w]+) /', $this->session->storyQueryCondition, $matches);
preg_match_all('/[`"]' . trim(TABLE_STORY, '`') .'[`"] AS ([\w]+) /', $this->session->storyQueryCondition, $matches);
if(isset($matches[1][0])) return 'id in (' . preg_replace('/SELECT .* FROM/', "SELECT {$matches[1][0]}.id FROM", $this->session->storyQueryCondition) . ')';
}
return $this->session->storyQueryCondition;