From 1628c7bf5b9413dd15f201eec29922f72c599e8b Mon Sep 17 00:00:00 2001 From: tianya Date: Sun, 30 Mar 2025 09:45:32 +0800 Subject: [PATCH] Update api.php --- src/admin/api.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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();