Plugin Directory

Changeset 139237


Ignore:
Timestamp:
07/25/2009 05:40:15 PM (17 years ago)
Author:
wnorris
Message:

fix PHP warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • comment-saver/trunk/comment-saver.php

    r125678 r139237  
    66Plugin URI: http://wordpress.org/extend/plugins/comment-saver/
    77Author URI: http://willnorris.com/
    8 Version: 1.3
     8Version: 1.4
    99License: Dual GPL (http://www.fsf.org/licensing/licenses/info/GPLv2.html) and Modified BSD (http://www.fsf.org/licensing/licenses/index_html#ModifiedBSD)
    1010*/
     
    2121function comment_saver_cookie_path() {
    2222    $parts = parse_url(get_option('home'));
    23     $path = $parts['path'];
    24     return $path ? $path : '/';
     23    $path = array_key_exists('path', $parts) ? $parts['path'] : '/';
     24    return $path;
    2525}
    2626
Note: See TracChangeset for help on using the changeset viewer.