Добавление проектов
Добавили возможность создавания разных проектов.
This commit is contained in:
@@ -81,7 +81,7 @@ class TaskImage {
|
||||
$file_size = strlen($file_data);
|
||||
|
||||
// Обновляем file_img в базе
|
||||
$current_files = json_decode($task['file_img'], true) ?? [];
|
||||
$current_files = $task['file_img'] ? json_decode($task['file_img'], true) : [];
|
||||
$current_files[] = [
|
||||
'url' => $file_url,
|
||||
'name' => $final_name,
|
||||
@@ -115,7 +115,7 @@ class TaskImage {
|
||||
}
|
||||
|
||||
// Получаем текущие файлы
|
||||
$current_files = json_decode($task['file_img'], true) ?? [];
|
||||
$current_files = $task['file_img'] ? json_decode($task['file_img'], true) : [];
|
||||
$upload_dir = __DIR__ . '/../../../public/task/' . $task_id;
|
||||
$deleted = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user