diff --git a/src/admin/api.php b/src/admin/api.php index b745c7da..0048dbb0 100644 --- a/src/admin/api.php +++ b/src/admin/api.php @@ -86,9 +86,11 @@ if ($action === 'is_need_check_code') { if (!$dsql->IsTable("#@__ai")) { $unQueryVer[] = "6.5.0"; } - $row = $dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__ai_prompt` WHERE pname = 'body_edit'"); - if (isset($row['dd']) && $row['dd'] == 0) { - $unQueryVer[] = "6.5.2"; + if ($dsql->IsTable("#@__ai_prompt")) { + $row = $dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__ai_prompt` WHERE pname = 'body_edit'"); + if (isset($row['dd']) && $row['dd'] == 0) { + $unQueryVer[] = "6.5.2"; + } } if (count($unQueryVer) > 0) { $upsqls = GetUpdateSQL();