Make WordPress Core

Ticket #30297: 30297.2-no-var.patch

File 30297.2-no-var.patch, 723 bytes (added by elusiveunit, 12 years ago)

Refresh

  • wp-includes/general-template.php

     
    16711671                }
    16721672        }
    16731673
    1674         if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'camino') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false)
     1674        if ( isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'camino') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false )
    16751675                $ak_title_separator = "\n";
    16761676        else
    16771677                $ak_title_separator = ', ';