rabin %!s(int64=3) %!d(string=hai) anos
pai
achega
f73a65d49d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      service/mail/lib/Manage.php

+ 3 - 0
service/mail/lib/Manage.php

@@ -721,6 +721,9 @@ class Manage
         $shop = array();
         if ($data) {
             foreach ($data as $k => $v) {
+                if (!isset($shop[$v['type_id']])) {
+                    $shop[$v['shop_id']] = 0;
+                }
                 $price = $v['buy'];
                 $total += $price;
                 $shop[$v['shop_id']] += round($price * $per, 2);