From f580d5ba47b31bdb5c085c5d66418eb0a22bc91b Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 26 Dec 2009 11:51:57 +1300 Subject: [PATCH] Ensure privileges is binary rather than string. --- inc/CalDAVPrincipal.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/CalDAVPrincipal.php b/inc/CalDAVPrincipal.php index 69cb1d2d..1e1ee89f 100644 --- a/inc/CalDAVPrincipal.php +++ b/inc/CalDAVPrincipal.php @@ -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; }