Fix single event search in DB driver

This commit is contained in:
Thomas 2011-10-12 22:38:06 +02:00
parent cbae8d0187
commit 14ffcb15df

View file

@ -662,7 +662,7 @@ class database_driver extends calendar_driver
),
$id);
if ($result && ($event = $this->rc->db->fetch_assoc($result))) {
if ($result && ($event = $this->rc->db->fetch_assoc($result)) && $event['event_id']) {
$this->cache[$id] = $this->_read_postprocess($event);
return $this->cache[$id];
}