diff --git a/src/Services/Tg/ReportUser.php b/src/Services/Tg/ReportUser.php index 6a50d39f..3ffed2fd 100755 --- a/src/Services/Tg/ReportUser.php +++ b/src/Services/Tg/ReportUser.php @@ -71,10 +71,10 @@ final class ReportUser $iRegFromRate = 0; $iPayRagRate = 0; - if ($iTotalRegCount) { + if ($iTotalRegCount && $iTotalFromCount) { $iRegFromRate = (int) (($iTotalRegCount / $iTotalFromCount) * 100); } - if ($iTotalPayCount) { + if ($iTotalPayCount && $iTotalRegCount) { $iPayRagRate = (int) (($iTotalPayCount / $iTotalRegCount) * 100); }