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:
Ralf Becker 2004-12-02 15:31:39 +00:00
parent 582aee2499
commit f64a1ab7b1

View File

@ -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)