mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Check to see if arrays are set before executing for each loops to prevent php errors
This commit is contained in:
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user