shish 3 éve
szülő
commit
96b9436724
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app-ghs/controllers/CheckOrderController.php

+ 1 - 1
app-ghs/controllers/CheckOrderController.php

@@ -129,7 +129,7 @@ class CheckOrderController extends BaseController
             foreach ($ghsItemInfo as $key => $val) {
                 $pId = $val['productId'] ?? 0;
                 $info = ProductClass::getById($pId, true);
-                if ($info->mainId != 2128) {
+                if (!empty($info) && $info->mainId != 2128) {
                     unset($ghsItemInfo[$key]);
                 }
             }