forked from extern/egroupware
fixed sql error reported by maxdb testers: iCal import should not be able to update existing events without that fix
This commit is contained in:
parent
582aee2499
commit
f64a1ab7b1
@ -50,7 +50,6 @@
|
||||
echo '<!-- SO cat_id : '.$this->cat_id.' -->'."\n";
|
||||
}
|
||||
$this->cal = CreateObject('calendar.socalendar_');
|
||||
$this->db = &$this->db;
|
||||
|
||||
foreach($this->cal->all_tables as $name => $table)
|
||||
{
|
||||
@ -217,7 +216,7 @@
|
||||
|
||||
function find_uid($uid)
|
||||
{
|
||||
$sql = " AND ($this->table.cal_uid=".(int)$uid.' )';
|
||||
$sql = " AND ($this->table.cal_uid=".$this->db->quote($uid).')';
|
||||
|
||||
$found = $this->cal->get_event_ids(False,$sql);
|
||||
if(!$found)
|
||||
|
Loading…
Reference in New Issue
Block a user