wzq 5 anni fa
parent
commit
aae07c12f5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Repositories/PostRepositories.php

+ 1 - 1
app/Repositories/PostRepositories.php

@@ -408,7 +408,7 @@ class PostRepositories
             $id = $request['id'];
         }
         $where[] = ['type', 'video'];
-        if(isset($request['type'])){
+        if(isset($request['type']) && $request['type']){
             if($request['type'] == 'hot'){
                 $ids = Redis::get('hotVideoIds');
                 if(!$ids){