Changeset 7401

Show
Ignore:
Timestamp:
03/19/08 18:18:59 (5 months ago)
Author:
markjaquith
Message:

Make sure apache_getenv() exists before using it. fixes #6278

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/media.php

    r7397 r7401  
    780780 
    781781    // If Mac and mod_security, no Flash. :( 
    782     if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) ) 
     782    if ( function_exists('apache_getenv') && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) ) 
    783783        $flash = false; 
    784784    else