dever 3 anni fa
parent
commit
a9c17a2d66
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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