diff --git a/module/ai/control.php b/module/ai/control.php index 51f0ac6c85..74007ffeec 100644 --- a/module/ai/control.php +++ b/module/ai/control.php @@ -473,6 +473,8 @@ class ai extends control $prompt->desc = $data->desc; $this->ai->updatePrompt($prompt, $originalPrompt); + if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); + if(!empty($data->jumpToNext)) $this->ai->togglePromptStatus($prompt, 'active'); if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));