Browse Source

fix php8下 xml采集资源count问题

magicblack 3 years ago
parent
commit
95b999c277
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/common/model/Collect.php

+ 1 - 1
application/common/model/Collect.php

@@ -241,7 +241,7 @@ class Collect extends Base {
             $array_server=[];
             $array_note=[];
             //videolist|list播放列表不同
-            if($count=count($video->dl->dd)){
+            if(isset($video->dl->dd) && $count=count($video->dl->dd)){
                 for($i=0; $i<$count; $i++){
                     $array_from[$i] = (string)$video->dl->dd[$i]['flag'];
                     $array_url[$i] = $this->vod_xml_replace((string)$video->dl->dd[$i]);