Reply to Re: Array Key Exists

Re: Array Key Exists new!
by Matty, 16 years, 6 months ago
Ermm...how do i do the log?

Yeah my file is stripped of comments just ot lighten the weight a little

lines 350-353 are:
$this->file_src_mime = (array_key_exists('mime', $info) ? $info['mime'] : NULL); 
// if we don't have a MIME type, we attempt to retrieve it the old way
if (empty($this->file_src_mime)) {
    $mime = (array_key_exists(2, $info) ? $info[2] : NULL);   // 1 = GIF, 2 = JPG, 3 = PNG
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important