diff --git a/htdocs/always.php b/htdocs/always.php index e2cd1009..3d75a50a 100644 --- a/htdocs/always.php +++ b/htdocs/always.php @@ -464,7 +464,7 @@ function privilege_to_bits( $raw_privs ) { * @param integer $raw_bits A bit mask of the privileges. * @return mixed The string (or array of strings) of privilege names */ -function bits_to_privilege( $raw_bits, $resourcetype = 'calendar' ) { +function bits_to_privilege( $raw_bits, $resourcetype = 'resource' ) { $out_priv = array(); if ( is_string($raw_bits) ) { diff --git a/inc/always.php.in b/inc/always.php.in index a469a260..e9549992 100644 --- a/inc/always.php.in +++ b/inc/always.php.in @@ -464,7 +464,7 @@ function privilege_to_bits( $raw_privs ) { * @param integer $raw_bits A bit mask of the privileges. * @return mixed The string (or array of strings) of privilege names */ -function bits_to_privilege( $raw_bits, $resourcetype = 'calendar' ) { +function bits_to_privilege( $raw_bits, $resourcetype = 'resource' ) { $out_priv = array(); if ( is_string($raw_bits) ) {