Merge pull request #4 from club-1/fix-edit-event
fix: event edition for caldav driver
This commit is contained in:
commit
9c6b8b4171
1 changed files with 2 additions and 0 deletions
|
@ -945,6 +945,8 @@ class caldav_driver extends calendar_driver
|
|||
$sql_set[] = $this->rc->db->quote_identifier($col) . '=' . $this->rc->db->quote($event[$col]->format(self::DB_DATE_FORMAT));
|
||||
else if (is_array($event[$col]))
|
||||
$sql_set[] = $this->rc->db->quote_identifier($col) . '=' . $this->rc->db->quote(join(',', $event[$col]));
|
||||
else if (array_key_exists($col, $event) && is_null($event[$col]))
|
||||
$sql_set[] = $this->rc->db->quote_identifier($col) . '=NULL';
|
||||
else if (array_key_exists($col, $event)) {
|
||||
//TODO: proper 4 byte character (eg emoticons) handling
|
||||
//utf8 in mysql only supports 3 byte characters, so this throws an error if there are emoticons in the description.
|
||||
|
|
Loading…
Reference in a new issue