diff --git a/cron.php b/cron.php index 093af55b..3b6f685b 100644 --- a/cron.php +++ b/cron.php @@ -987,7 +987,7 @@ $update_message = $updates->update_message; if ($updates->current_version !== $updates->latest_version) { // Send Alert to inform Updates Available - mysqli_query($mysqli, "INSERT INTO notifications SET notification_type = 'Updates', notification = '$update_message', notification_action = 'admin_update.php'"); + mysqli_query($mysqli, "INSERT INTO notifications SET notification_type = 'Update', notification = '$update_message', notification_action = 'admin_update.php'"); } diff --git a/functions.php b/functions.php index ccae0352..389d018f 100644 --- a/functions.php +++ b/functions.php @@ -1190,7 +1190,7 @@ function getTicketStatusName($ticket_status) { function fetchUpdates() { - global $mysqli, $repo_branch; + global $repo_branch; // Fetch the latest code changes but don't apply them exec("git fetch", $output, $result);