Ensure privileges is binary rather than string.

This commit is contained in:
Andrew McMillan 2009-12-26 11:51:57 +13:00
parent 9eb76822ce
commit f580d5ba47

View File

@ -411,6 +411,7 @@ class CalDAVPrincipal
* Return the privileges bits for the current session user to this resource
*/
function Privileges() {
if ( is_string($this->privileges) ) $this->privileges = bindec( $this->privileges );
return $this->privileges;
}