From: Alexander Smirnov Date: Tue, 2 Apr 2024 14:34:20 +0000 (+0300) Subject: fix bonus sex undefined variable X-Git-Tag: 1.1~162^2~3 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e7700b0325e8d0db5dc6374d9cb337cdf3761d62;p=erp24_rep%2Fyii-erp24%2F.git fix bonus sex undefined variable --- 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"];