Check to see if arrays are set before executing for each loops to prevent php errors

This commit is contained in:
johnnyq
2024-11-14 19:13:56 -05:00
parent e9f023f0c7
commit ed92592aa6
14 changed files with 74 additions and 64 deletions

View File

@@ -176,7 +176,7 @@ if (isset($_POST['bulk_delete_files'])) {
validateCSRFToken($_POST['csrf_token']);
// Delete file loop
if ($_POST['file_ids']) {
if (isset($_POST['file_ids'])) {
// Get selected file Count
$file_count = count($_POST['file_ids']);
@@ -224,7 +224,7 @@ if (isset($_POST['bulk_move_files'])) {
$client_id = intval($row['folder_client_id']);
// Check array for data
if ($_POST['file_ids']) {
if (isset($_POST['file_ids'])) {
// Get Selected file Count
$file_count = count($_POST['file_ids']);