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

git-svn-id: https://develop.svn.wordpress.org/trunk@7401 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-03-19 18:18:59 +00:00
parent 98e215a58e
commit 09e9e04f89
1 changed files with 1 additions and 1 deletions

View File

@ -779,7 +779,7 @@ function media_upload_form( $errors = null ) {
$flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php"; $flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php";
// If Mac and mod_security, no Flash. :( // If Mac and mod_security, no Flash. :(
if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) ) if ( function_exists('apache_getenv') && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) )
$flash = false; $flash = false;
else else
$flash = true; $flash = true;