fixed not included participants which are email addresses or contacts in AS

This commit is contained in:
Ralf Becker 2011-04-28 17:55:44 +00:00
parent b509c6cfbe
commit f3402daf91
2 changed files with 4 additions and 4 deletions

View File

@ -776,8 +776,8 @@ class calendar_activesync implements activesync_plugin_write
} }
else else
{ {
list($info) = $this->calendar->resources[$uid[0]]['info'] ? list($info) = $i = $this->calendar->resources[$uid[0]]['info'] ?
ExecMethod($this->resources[$uid[0]]['info'],substr($uid,1)) : array(false); ExecMethod($this->calendar->resources[$uid[0]]['info'],substr($uid,1)) : array(false);
if (!$info) continue; if (!$info) continue;

View File

@ -252,7 +252,7 @@ class calendar_bo
if (!$ids) return null; if (!$ids) return null;
$data = array(); $data = array();
foreach(!is_array($ids) ? array($ids) : $ids as $id) foreach((array)$ids as $id)
{ {
$email = $id; $email = $id;
$name = ''; $name = '';
@ -268,7 +268,7 @@ class calendar_bo
'name' => $name, 'name' => $name,
); );
} }
//echo "<p>email_info(".print_r($ids,true).")="; _debug_array($data); //error_log(__METHOD__.'('.array2string($ids).')='.array2string($data).' '.function_backtrace());
return $data; return $data;
} }