From 320e2ad8fcab70e4d079903431f30fe09610ac8f Mon Sep 17 00:00:00 2001 From: DarkNoon <13015521+darknoon29@users.noreply.github.com> Date: Fri, 29 Sep 2023 18:44:22 +0200 Subject: [PATCH] BUGFIX #397 - Correction Fonction Galaxy Statistics pour Eviter Erreur --- includes/galaxy.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/galaxy.php b/includes/galaxy.php index c39fb9a3..ede080ec 100644 --- a/includes/galaxy.php +++ b/includes/galaxy.php @@ -31,11 +31,12 @@ use Ogsteam\Ogspy\Helper\SearchCriteria_Helper; /** - * Vérification des droits OGSpy + * Checks the authorization of a user for a specific action. * - * @param string $action Droit interrogé + * @param string $action The action to check authorization for. + * @throws None + * @return None */ - function galaxy_check_auth($action) { global $user_data, $user_auth; @@ -404,6 +405,7 @@ function galaxy_statistic($step = 50) $Universe_Model = new Universe_Model(); + $statistics = array(); $nb_planets_total = 0; $nb_freeplanets_total = 0;