diff options
Diffstat (limited to '')
-rw-r--r-- | admin/include/photos_add_direct_process.inc.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/admin/include/photos_add_direct_process.inc.php b/admin/include/photos_add_direct_process.inc.php index 15c7abebb..c0cb3e4c0 100644 --- a/admin/include/photos_add_direct_process.inc.php +++ b/admin/include/photos_add_direct_process.inc.php @@ -42,9 +42,19 @@ if (isset($_GET['processed'])) ) ); } - - $category_id = $_POST['category']; + else + { + $category_id = $_POST['category']; + } + if (isset($_POST['onUploadError']) and is_array($_POST['onUploadError']) and count($_POST['onUploadError']) > 0) + { + foreach ($_POST['onUploadError'] as $error) + { + array_push($page['errors'], $error); + } + } + $image_ids = array(); if (isset($_FILES) and !empty($_FILES['image_upload'])) |