If we can't split the path then default the username from the session.

This commit is contained in:
Andrew McMillan 2007-11-03 20:45:33 +13:00
parent 2d456cadd5
commit 7736e01a0a

View File

@ -118,7 +118,7 @@ class CalDAVPrincipal
if ( $path == '/' || $path == '' ) {
dbg_error_log( "principal", "No useful path split possible" );
return false;
return $session->username;
}
$path_split = explode('/', $path );