shish 3 лет назад
Родитель
Сommit
6f1ecc5e56
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app-ghs/controllers/ProductController.php

+ 1 - 0
app-ghs/controllers/ProductController.php

@@ -47,6 +47,7 @@ class ProductController extends BaseController
         foreach ($arr as $date) {
             $new[] = strtotime($date);
         }
+        $new = array_unique(array_filter($new));
         asort($new);
         $newStr = implode(',', $new);
         $info->presell = $presell;