* Fix bug when create task and story error.

This commit is contained in:
zhengrunyu
2022-04-26 15:14:22 +08:00
parent d288ef5b11
commit 2633b5c23c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ class task extends control
$changes = $this->task->update($taskID);
if(dao::isError()) return print(js::error(dao::getError()));
$files = $this->loadModel('file')->saveUpload('task', $taskID);
if(empty($files) and $this->post->uid != '') $files = $this->file->getPairs($_SESSION['album']['used'][$this->post->uid]);
if(empty($files) and $this->post->uid != '' and isset($_SESSION['album']['used'][$this->post->uid])) $files = $this->file->getPairs($_SESSION['album']['used'][$this->post->uid]);
}
$task = $this->task->getById($taskID);