aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-05-15 14:10:40 +0200
committerAndreas Fischer <bantu@phpbb.com>2013-05-15 14:10:40 +0200
commit5c23ed57fe88c9bae26c4ecfb27029c6799ae1c9 (patch)
tree71eb2c073515435b441e41097f8b5288f1ea63cb /phpBB/includes/functions.php
parentf2bc62ba75648d9a56d8fa5f215e4bffd299e77a (diff)
parent06edf15ac3e63350b7973b04f07578de1c4565d0 (diff)
downloadforums-5c23ed57fe88c9bae26c4ecfb27029c6799ae1c9.tar
forums-5c23ed57fe88c9bae26c4ecfb27029c6799ae1c9.tar.gz
forums-5c23ed57fe88c9bae26c4ecfb27029c6799ae1c9.tar.bz2
forums-5c23ed57fe88c9bae26c4ecfb27029c6799ae1c9.tar.xz
forums-5c23ed57fe88c9bae26c4ecfb27029c6799ae1c9.zip
Merge remote-tracking branch 'nickvergessen/ticket/11546' into develop-olympus
* nickvergessen/ticket/11546: [ticket/11546] Fix is_absolute() throws E_NOTICE for empty string
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
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;
}
/**