Make sure stat url is present before changing it. Fixes error loading mounted etemplates.

This commit is contained in:
Nathan Gray 2015-03-24 19:42:32 +00:00
parent 320816b4cb
commit f5863852e4

View File

@ -1007,7 +1007,7 @@ class StreamWrapper implements StreamWrapperIface
{
$stat['mode'] &= ~0222;
}
if($query && strpos($stat['url'],'?'.$query)===false)
if($stat['url'] && $query && strpos($stat['url'],'?'.$query)===false)
{
$stat['url'] .= '?'.$query;
}