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

@@ -199,7 +199,7 @@ if (isset($_POST['add_project_ticket'])) {
$project_name = sanitizeInput($row['project_name']);
// Add Tickets
if ($_POST['tickets']) {
if (isset($_POST['tickets'])) {
// Get Selected Count
$count = count($_POST['tickets']);