This commit is contained in:
Yuri Kuznetsov
2014-11-18 14:31:23 +02:00
parent ae4a6fa3d2
commit 0d302e99af
@@ -34,7 +34,7 @@ class EventConfirmation extends \Espo\Core\EntryPoints\Base
public static $authRequired = false;
public function run()
{
{
$uid = $_GET['uid'];
$action = $_GET['action'];
if (empty($uid) || empty($action)) {
@@ -63,7 +63,7 @@ class EventConfirmation extends \Espo\Core\EntryPoints\Base
if (!empty($eventType) && !empty($eventId) && !empty($inviteeType) && !empty($inviteeId) && !empty($link)) {
$event = $this->getEntityManager()->getEntity($eventType, $eventId);
$invitee = $this->getEntityManager()->getEntity($inviteeType, $inviteeId);
if ($event && $invitee) {
if ($event && $invitee) {
$relDefs = $event->getRelations();
$tableName = Util::toUnderscore($relDefs[$link]['relationName']);
@@ -88,9 +88,9 @@ class EventConfirmation extends \Espo\Core\EntryPoints\Base
echo $status;
return;
}
}
}
throw new Error();
}
throw new Error();
}
}