From fe7ab1c5b2d2930736b1cf33361d7bd6d970750d Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 16 Sep 2008 09:47:57 +1200 Subject: [PATCH] Fix uninitialised variable warning. --- inc/CalDAVPrincipal.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/CalDAVPrincipal.php b/inc/CalDAVPrincipal.php index f631b3ba..d9666050 100644 --- a/inc/CalDAVPrincipal.php +++ b/inc/CalDAVPrincipal.php @@ -64,11 +64,13 @@ class CalDAVPrincipal global $session, $c; if ( $parameters == null ) return false; + $this->by_email = false; if ( is_int($parameters) ) { dbg_error_log( "principal", "Principal: %d", $parameters ); $usr = getUserByID($parameters); } else if ( is_array($parameters) ) { + if ( ! isset($parameters['options']['allow_by_email']) ) $parameters['options']['allow_by_email'] = false; if ( isset($parameters['username']) ) { $usr = getUserByName($parameters['username']); }