dever 3 tahun lalu
induk
melakukan
a9c17a2d66
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/shop/src/Excel.php

+ 2 - 2
app/shop/src/Excel.php

@@ -98,7 +98,7 @@ class Excel
                             //$v2['code'] = '-' . $v2['code'];
                         }
                         $p = $v2['price'];
-                        if (is_numeric($v2['num'])) {
+                        if (is_numeric($v2['num']) && is_numeric($v2['price'])) {
                             $p = $v2['price']*$v2['num'];
                         }
                         $d = array
@@ -232,7 +232,7 @@ class Excel
                             //$v2['code'] = '-' . $v2['code'];
                         }
                         $p = $v2['price'];
-                        if (is_numeric($v2['num'])) {
+                        if (is_numeric($v2['num']) && is_numeric($v2['price'])) {
                             $p = $v2['price']*$v2['num'];
                         }
                         $d = array