diff --git a/phpgwapi/inc/class.egw_vfs.inc.php b/phpgwapi/inc/class.egw_vfs.inc.php index 42adcefaf1..4e275d5e06 100644 --- a/phpgwapi/inc/class.egw_vfs.inc.php +++ b/phpgwapi/inc/class.egw_vfs.inc.php @@ -936,7 +936,7 @@ class egw_vfs extends vfs_stream_wrapper static function concat($url,$relative) { list($url,$query) = explode('?',$url,2); - return substr($url,-1) == '/' ? $url.$relative : $url.'/'.$relative.($query ? '?'.$query : ''); + return (substr($url,-1) == '/' ? $url.$relative : $url.'/'.$relative).($query ? '?'.$query : ''); } /**