* Adjust codes.

This commit is contained in:
daitingting
2018-03-30 10:15:48 +08:00
parent 5e37928be5
commit ad7cfe467e
+1 -1
View File
@@ -90,7 +90,7 @@ class bugModel extends model
empty($bug->case) ? $this->loadModel('score')->create('bug', 'create', $bugID) : $this->loadModel('score')->create('bug', 'createFormCase', $bug->case);
/* Callback the callable method to process the related data for object that is transfered to bug. */
if(is_callable(array($this, $this->config->bug->fromObjects[$from]['callback']))) call_user_func(array($this, $this->config->bug->fromObjects[$from]['callback']), $bugID);
if($from && is_callable(array($this, $this->config->bug->fromObjects[$from]['callback']))) call_user_func(array($this, $this->config->bug->fromObjects[$from]['callback']), $bugID);
return array('status' => 'created', 'id' => $bugID);
}