ErrorException [ Notice ]: Undefined offset: 0

/var/www/urgan.rf/project/content/VideoByHeadingView.php [ 76 ]

71                   $JSON = @file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=statistics&id={$video_ID}&key=AIzaSyDq_fWQi0q3ncvtm6-3aMNC0QHSY-WXwK4");
72                   if(empty($JSON)){
73                       $youtube_viewscount = null;
74                   } else {
75                       $JSON_Data = json_decode($JSON);
76                       $youtube_viewscount = $JSON_Data->items[0]->statistics->viewCount;
77                   }
78                 }
79               }
80               ?>
81               <div class="view"><img src="/assets/images/ico/views_ico.png">
  1. /var/www/urgan.rf/project/content/VideoByHeadingView.php [ 76 ] » ngin::engineErrorHandler(arguments)

  2. /var/www/urgan.rf/engine/class/SMenu.php [ 539 ] » VideoByHeadingView->run()

  3. /var/www/urgan.rf/layout/pages/main.php [ 3 ] » SMenu->echoContent()

  4. /var/www/urgan.rf/layout/switch.php [ 35 ] » include(arguments)

  5. /var/www/urgan.rf/main_template.php [ 198 ] » require_once(arguments)

  6. /var/www/urgan.rf/start.php [ 18 ] » include(arguments)

  7. /var/www/urgan.rf/map.php [ 75 ] » include(arguments)

Environment