diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-05-15 13:55:35 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-05-15 14:05:56 +0200 |
commit | 06edf15ac3e63350b7973b04f07578de1c4565d0 (patch) | |
tree | 71eb2c073515435b441e41097f8b5288f1ea63cb /phpBB | |
parent | f2bc62ba75648d9a56d8fa5f215e4bffd299e77a (diff) | |
download | forums-06edf15ac3e63350b7973b04f07578de1c4565d0.tar forums-06edf15ac3e63350b7973b04f07578de1c4565d0.tar.gz forums-06edf15ac3e63350b7973b04f07578de1c4565d0.tar.bz2 forums-06edf15ac3e63350b7973b04f07578de1c4565d0.tar.xz forums-06edf15ac3e63350b7973b04f07578de1c4565d0.zip |
[ticket/11546] Fix is_absolute() throws E_NOTICE for empty string
PHPBB3-11546
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index cf676a3351..4b144a20a1 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1005,7 +1005,7 @@ if (!function_exists('stripos')) */ function is_absolute($path) { - return ($path[0] == '/' || (DIRECTORY_SEPARATOR == '\\' && preg_match('#^[a-z]:[/\\\]#i', $path))) ? true : false; + return (isset($path[0]) && $path[0] == '/' || (DIRECTORY_SEPARATOR == '\\' && preg_match('#^[a-z]:[/\\\]#i', $path))) ? true : false; } /** |