* Fix bug with undefined values.

This commit is contained in:
liumengyi
2023-05-31 16:13:58 +08:00
parent 8c94f12ed0
commit 1b91baa71b
+2 -2
View File
@@ -1981,8 +1981,8 @@ class bugZen extends bug
/* Return bug id when call the API. */
if(!$message) $message = $this->lang->saveSuccess;
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $message, 'id' => $bugID));
if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'success', 'data' => $bugID));
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $message, 'id' => $bug->id));
if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'success', 'data' => $bug->id));
if(isonlybody()) return $this->send($this->responseInModal($executionID));