Make WordPress Core

Ticket #30297: 30297.3-no-var.patch

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

Refresh

  • wp-includes/general-template.php

     
    17441744                }
    17451745        }
    17461746
    1747         if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'camino') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false)
     1747        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 )
    17481748                $ak_title_separator = "\n";
    17491749        else
    17501750                $ak_title_separator = ', ';