1
0

Добавление проектов

Добавили возможность создавания разных проектов.
This commit is contained in:
2026-01-14 10:46:38 +07:00
parent 04e88cb7fa
commit 719aecd09e
22 changed files with 996 additions and 233 deletions

View File

@@ -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 = [];