mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 20:49:08 +01:00
"make profind and get_eacl fail silent, if backend does not support them"
This commit is contained in:
parent
d741545f59
commit
e966c73feb
@ -720,7 +720,7 @@ class egw_vfs extends vfs_stream_wrapper
|
||||
*/
|
||||
static function get_eacl($path)
|
||||
{
|
||||
return self::_call_on_backend('get_eacl',array($path));
|
||||
return self::_call_on_backend('get_eacl',array($path),true); // true = fail silent (no PHP Warning)
|
||||
}
|
||||
|
||||
/**
|
||||
@ -751,7 +751,7 @@ class egw_vfs extends vfs_stream_wrapper
|
||||
*/
|
||||
static function propfind($path,$ns=self::DEFAULT_PROP_NAMESPACE)
|
||||
{
|
||||
return self::_call_on_backend('propfind',array($path,$ns));
|
||||
return self::_call_on_backend('propfind',array($path,$ns),true); // true = fail silent (no PHP Warning)
|
||||
}
|
||||
|
||||
/**
|
||||
@ -833,7 +833,15 @@ class egw_vfs extends vfs_stream_wrapper
|
||||
*/
|
||||
static function int2mode( $mode )
|
||||
{
|
||||
if($mode & 0x1000) // FIFO pipe
|
||||
if(($mode & self::MODE_LINK) == self::MODE_LINK) // Symbolic Link
|
||||
{
|
||||
$sP = 'l';
|
||||
}
|
||||
elseif(($mode & 0xC000) == 0xC000) // Socket
|
||||
{
|
||||
$sP = 's';
|
||||
}
|
||||
elseif($mode & 0x1000) // FIFO pipe
|
||||
{
|
||||
$sP = 'p';
|
||||
}
|
||||
@ -853,14 +861,6 @@ class egw_vfs extends vfs_stream_wrapper
|
||||
{
|
||||
$sP = '-';
|
||||
}
|
||||
elseif($mode & 0xA000) // Symbolic Link
|
||||
{
|
||||
$sP = 'l';
|
||||
}
|
||||
elseif($mode & 0xC000) // Socket
|
||||
{
|
||||
$sP = 's';
|
||||
}
|
||||
else // UNKNOWN
|
||||
{
|
||||
$sP = 'u';
|
||||
|
Loading…
Reference in New Issue
Block a user