wesmiler il y a 2 mois
Parent
commit
a2cd050d55
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/Services/Common/ArticleService.php

+ 1 - 1
app/Services/Common/ArticleService.php

@@ -72,7 +72,7 @@ class ArticleService extends BaseService
             ->where(function ($query) use ($type) {
                 if ($type>0) {
                     $query->where('a.type', $type);
-                }if ($type<0) {
+                } else if ($type<0) {
                     $query->whereIn('a.type', [1,2]);
                 } else {
                     $query->where('a.type','>=',3)->where('a.type','<',9);