* Fix bug 21591.

This commit is contained in:
zhengrunyu
2022-04-08 14:03:21 +08:00
parent 365a048084
commit a7d7cca753
3 changed files with 4 additions and 5 deletions
+1 -4
View File
@@ -459,10 +459,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 != '') $files = $this->file->getPairs($_SESSION['album']['used'][$this->post->uid]);
}
$task = $this->task->getById($taskID);