From e7700b0325e8d0db5dc6374d9cb337cdf3761d62 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 2 Apr 2024 17:34:20 +0300 Subject: [PATCH] fix bonus sex undefined variable --- erp24/modul/bonus/sex.php | 1 + 1 file changed, 1 insertion(+) diff --git a/erp24/modul/bonus/sex.php b/erp24/modul/bonus/sex.php index 0cbbce39..4895bcf6 100644 --- a/erp24/modul/bonus/sex.php +++ b/erp24/modul/bonus/sex.php @@ -28,6 +28,7 @@ $array_female = array_map('trim', $array_female); $data=$db::getRows("SELECT pol, count(*) as cnt FROM `users` WHERE 1 GROUP BY pol"); +$all = 0; foreach($data as $row) { //echo"
".$row["pol"]." = ".$row["cnt"]." "; $all=$all+$row["cnt"]; -- 2.39.5