title: Deepcrawl getting data : Undefined Offset 1
body: <p>Deepcrawl.php</p>
  
  <pre><code>&lt;?php 
  
  $array_issues[] = 0;
  
  $issues = array("thin_pages_basic","not_in_sitemaps_primary_indexable_basic","duplicate_titles_2_basic","pages_with_duplicate_titles_basic","max_external_links_basic","4xx_errors_basic");
  
  for($i=0;$i&lt;6;$i++){
  $ch = curl_init();
  
  curl_setopt($ch, CURLOPT_URL,"Your Api key". $issues[$i]);
  
  curl_setopt($ch, CURLOPT_POST, 0);
  curl_setopt($ch,CURLOPT_HTTPHEADER,array('X-Auth-Token:91PB_EP-LSaTVcm2bCjWyE9oLBEhGYSpvuW-gILR1eCEiK-VPL4YO40L8hTFTnepC8HjaLgn2C3AG6k3iv_-zg'));
  
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $server_output2 = curl_exec ($ch);
  curl_close ($ch); 
  
  $results = json_decode($server_output2);
  
  $j=0;
  // to get each object from an array of object
  foreach((array)$results as $result){ 
    if($j==3)
    $array_issues[$i] = $result;
  
    $j++;
    }
  } 
  ?&gt;
  </code></pre>
  
  <p>Displaying in the view file</p>
  
  <pre><code>                 &lt;tr&gt;
                      &lt;td style='color:#e86363'&gt;" . $array_issues[0] . "&lt;/td&gt;
                      &lt;td style='width:50px'&gt;&lt;/td&gt;
                      &lt;td&gt;Thin Pages&lt;/td&gt;
                  &lt;/tr&gt;
                   &lt;tr&gt;
                      &lt;td style='color:#e86363'&gt;" . $array_issues[1] . "&lt;/td&gt;
                      &lt;td style='width:50px'&gt;&lt;/td&gt;
                      &lt;td&gt;Primary Indexable Pages Not in Sitemaps &lt;/td&gt;
                  &lt;/tr&gt;
                   &lt;tr&gt;
                      &lt;td style='color:#e86363'&gt;" . $array_issues[2] . "&lt;/td&gt;
                      &lt;td style='width:50px'&gt;&lt;/td&gt;
                      &lt;td&gt;Duplicate Title Sets&lt;/td&gt;
                  &lt;/tr&gt;
                   &lt;tr&gt;
                      &lt;td style='color:#e86363'&gt;" . $array_issues[3] . "&lt;/td&gt;
                      &lt;td style='width:50px'&gt;&lt;/td&gt;
                      &lt;td&gt;Pages with Duplicate Titles&lt;/td&gt;
                  &lt;/tr&gt;
                   &lt;tr&gt;
                      &lt;td style='color:#e86363'&gt;" . $array_issues[4] . "&lt;/td&gt;
                      &lt;td style='width:50px'&gt;&lt;/td&gt;
                      &lt;td&gt;High External Linking&lt;/td&gt;
                  &lt;/tr&gt;
                   &lt;tr&gt;
                      &lt;td style='color:#e86363'&gt;" . $array_issues[5] . "&lt;/td&gt;
                      &lt;td style='width:50px'&gt;&lt;/td&gt;
                      &lt;td&gt;Broken Pages (4xx Errors)&lt;/td&gt;
                  &lt;/tr&gt;
  </code></pre>
  
  <p>Just wondering when I'm declaring on my view file I always got this error <code>Undefined offset: 1</code> </p>
  
  <p>But when I change the array from [1-5] to [0] it works okay but it didn't get any data at all? If you see whats causing this, posting below would really help. Thanks! :)</p>