title: Notice: Undefined offset: 0 error
body: <p>i keep getting the following error and i don't no how to fix it! Help!</p>
  
  <p><strong>Notice: Undefined offset: 0 in C:\public_html\admin\includes\funcs.inc.php on line 51</strong></p>
  
  <p>i do get the warning output error thought...</p>
  
  <pre><code>function getFileExtension($key) {
      $extensions = array(IMAGETYPE_GIF =&gt; '.gif', IMAGETYPE_JPEG =&gt; '.jpg', IMAGETYPE_PNG =&gt; '.png');
  
      $exifType = exif_imagetype($_FILES['artwork']['tmp_name'][$key]);   
      LINE 51 ---&gt; $ext = $extensions[$exifType];
  
      return $ext;
  }
  
  
  
  $ext = getFileExtension($key);
  
  if (!isset($ext)) {
      $warning = 'Error: Unsupported file type (supported images: gif, jpeg, png).';
  }
  </code></pre>