Make WordPress Core


Ignore:
Timestamp:
11/13/2010 09:53:55 AM (15 years ago)
Author:
nacin
Message:

Use square brackets instead of braces for string access. props hakre, fixes #13900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r16298 r16340  
    577577     */
    578578
    579     if ( $path{strlen($path)-1} == '/' ) // recursively return a temporary file path
     579    if ( $path[strlen($path)-1] == '/' ) // recursively return a temporary file path
    580580        return win_is_writable($path . uniqid(mt_rand()) . '.tmp');
    581581    else if ( is_dir($path) )
Note: See TracChangeset for help on using the changeset viewer.