diff --git a/Dockerfile b/Dockerfile index 18ed4cd20..2e281b9c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use the php:8.0.5-fpm-alpine base image -FROM php:8.0.5-fpm-alpine +FROM php:8.2-fpm-alpine # Set working directory to /var/www/html WORKDIR /var/www/html diff --git a/README.md b/README.md index 5fb4d6b41..ad5492796 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ See instructions to run Wallos below. #### Baremetal - NGINX or APACHE websever running -- PHP 7.4 or 8.0 with the following modules enabled: +- PHP 8.2 with the following modules enabled: - curl - gd - imagick @@ -149,7 +149,7 @@ I welcome contributions from the community and look forward to working with you ### Contributors - + ### Translations diff --git a/endpoints/cronjobs/sendnotifications.php b/endpoints/cronjobs/sendnotifications.php index 82ced36f1..b9e1547ec 100644 --- a/endpoints/cronjobs/sendnotifications.php +++ b/endpoints/cronjobs/sendnotifications.php @@ -226,14 +226,7 @@ } $postfields = [ - 'content' => $message, - 'embeds' => [ - [ - 'title' => $title, - 'description' => $message, - 'color' => hexdec("FF0000") - ] - ] + 'content' => $message ]; if (!empty($discord['bot_username'])) { diff --git a/includes/version.php b/includes/version.php index b16c84498..c9063c155 100644 --- a/includes/version.php +++ b/includes/version.php @@ -1,3 +1,3 @@ diff --git a/stats.php b/stats.php index a71bdab5a..910eac146 100644 --- a/stats.php +++ b/stats.php @@ -187,7 +187,12 @@ function getPriceConverted($price, $currency, $database) { $totalCostPerYear = $totalCostPerMonth * 12; // Calculate average subscription monthly cost - $averageSubscriptionCost = $totalCostPerMonth / $activeSubscriptions; + if ($activeSubscriptions > 0) { + $averageSubscriptionCost = $totalCostPerMonth / $activeSubscriptions; + } else { + $totalCostPerYear = 0; + $averageSubscriptionCost = 0; + } } else { $totalCostPerYear = 0; $averageSubscriptionCost = 0;