WordPress.org

Plugin Directory

Changeset 736154


Ignore:
Timestamp:
07/04/13 13:44:37 (10 months ago)
Author:
donncha
Message:

Avoid warnings in the php logs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/plugins/searchengine.php

    r696520 r736154  
    99        return $string; 
    1010 
    11     if( $_COOKIE[ '7a1254cba80da02d5478d91cfd0a873a' ] == 1 ) { 
     11    if( isset( $_COOKIE[ '7a1254cba80da02d5478d91cfd0a873a' ] ) && $_COOKIE[ '7a1254cba80da02d5478d91cfd0a873a' ] == 1 ) { 
    1212        $string = 'searchengine'; 
    13     } elseif( $_SERVER[ 'HTTP_REFERER' ] != '' ) { 
     13    } elseif( isset( $_SERVER[ 'HTTP_REFERER' ] ) && $_SERVER[ 'HTTP_REFERER' ] != '' ) { 
    1414        if( is_array( $passingthrough ) == false ) 
    1515            return $string; 
Note: See TracChangeset for help on using the changeset viewer.